switch documentation plugin
This commit is contained in:
parent
5ffabe5b25
commit
c5e5964e56
14
init.lua
14
init.lua
|
@ -165,11 +165,10 @@ require('lazy').setup({
|
||||||
--
|
--
|
||||||
|
|
||||||
{
|
{
|
||||||
'jeangiraldoo/codedocs.nvim',
|
'danymat/neogen',
|
||||||
-- Remove the 'dependencies' section if you don't plan on using nvim-treesitter
|
config = true,
|
||||||
dependencies = {
|
-- Uncomment next line if you want to follow only stable versions
|
||||||
'nvim-treesitter/nvim-treesitter',
|
-- version = "*"
|
||||||
},
|
|
||||||
},
|
},
|
||||||
-- Alternatively, use `config = function() ... end` for full control over the configuration.
|
-- Alternatively, use `config = function() ... end` for full control over the configuration.
|
||||||
-- If you prefer to call `setup` explicitly, use:
|
-- If you prefer to call `setup` explicitly, use:
|
||||||
|
@ -366,7 +365,10 @@ require('lazy').setup({
|
||||||
})
|
})
|
||||||
end, { desc = '[/] Fuzzily search in current buffer' })
|
end, { desc = '[/] Fuzzily search in current buffer' })
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>k', require('codedocs').insert_docs, { desc = 'Insert docstring' })
|
vim.keymap.set('n', '<leader>k', require('neogen').generate, {
|
||||||
|
noremap = true,
|
||||||
|
silent = true,
|
||||||
|
})
|
||||||
-- It's also possible to pass additional configuration options.
|
-- It's also possible to pass additional configuration options.
|
||||||
-- See `:help telescope.builtin.live_grep()` for information about particular keys
|
-- See `:help telescope.builtin.live_grep()` for information about particular keys
|
||||||
vim.keymap.set('n', '<leader>s/', function()
|
vim.keymap.set('n', '<leader>s/', function()
|
||||||
|
|
Loading…
Reference in New Issue