summaryrefslogtreecommitdiff
path: root/config/nvim/lua/plugins/apidocs.lua
blob: 9bc35da858843977c1a9a119eae6efd3e9c4728f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
return {
	"emmanueltouzery/apidocs.nvim",
	dependencies = {
		"nvim-telescope/telescope.nvim", -- or, 'folke/snacks.nvim'
	},
	cmd = { "ApidocsSearch", "ApidocsInstall", "ApidocsOpen", "ApidocsSelect", "ApidocsUninstall" },
	config = function()
		require("apidocs").setup()
		-- Picker will be auto-detected. To select a picker of your choice explicitly you can set picker by the configuration option 'picker':
		-- require('apidocs').setup({picker = "snacks"})
		-- Possible options are 'ui_select', 'telescope', and 'snacks'
	end,
	keys = {
		{ "<leader>sad", "<cmd>ApidocsOpen<cr>", desc = "Search Api Doc" },
	},
}