summaryrefslogtreecommitdiff
path: root/config/nvim/lua/plugins/apidocs.lua
blob: 9e76bff21be960df34f8e8f1b6ea8316db0251d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
return {
	"emmanueltouzery/apidocs.nvim",
	dependencies = {
		"nvim-telescope/telescope.nvim", -- or, 'folke/snacks.nvim'
	},
	cmd = { "ApidocsSearch", "ApidocsInstall", "ApidocsOpen", "ApidocsSelect", "ApidocsUninstall" },
	keys = {
		{
			"<leader>sad",
			"<cmd>ApidocsOpen<cr>",
			desc = "Search Api Doc",
		},
	},
	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,
}