add keymap
opens a new vsplit and *then* the devdocs picker
This commit is contained in:
parent
ffb88edcf8
commit
138b4a262f
|
@ -5,6 +5,14 @@ return {
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
},
|
},
|
||||||
|
init = function()
|
||||||
|
vim.keymap.set(
|
||||||
|
"n",
|
||||||
|
"<leader>sm",
|
||||||
|
"<cmd>vnew<CR><cmd>DevdocsOpenCurrent<CR>",
|
||||||
|
{ desc = "[S]earch the Friendly [M]anual" }
|
||||||
|
)
|
||||||
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
dir_path = vim.fn.stdpath("data") .. "/devdocs", -- installation directory
|
dir_path = vim.fn.stdpath("data") .. "/devdocs", -- installation directory
|
||||||
telescope = {}, -- passed to the telescope picker
|
telescope = {}, -- passed to the telescope picker
|
||||||
|
@ -21,10 +29,10 @@ return {
|
||||||
},
|
},
|
||||||
wrap = false, -- text wrap, only applies to floating window
|
wrap = false, -- text wrap, only applies to floating window
|
||||||
previewer_cmd = nil, -- for example: "glow"
|
previewer_cmd = nil, -- for example: "glow"
|
||||||
cmd_args = {}, -- example using glow: { "-s", "dark", "-w", "80" }
|
cmd_args = { "-s", "dark", "-w", "80" },
|
||||||
cmd_ignore = {}, -- ignore cmd rendering for the listed docs
|
cmd_ignore = {}, -- ignore cmd rendering for the listed docs
|
||||||
picker_cmd = false, -- use cmd previewer in picker preview
|
picker_cmd = false, -- use cmd previewer in picker preview
|
||||||
picker_cmd_args = {}, -- example using glow: { "-s", "dark", "-w", "50" }
|
picker_cmd_args = { "-s", "dark", "-w", "50" },
|
||||||
mappings = { -- keymaps for the doc buffer
|
mappings = { -- keymaps for the doc buffer
|
||||||
open_in_browser = "",
|
open_in_browser = "",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue