improving startup time by using lazy loading or filetype loading
This commit is contained in:
parent
bdb655c5a1
commit
7f1b34fd6f
62 changed files with 1285 additions and 561 deletions
19
lua/custom/plugins/neogen.lua
Executable file
19
lua/custom/plugins/neogen.lua
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
return {
|
||||
'danymat/neogen',
|
||||
dependencies = {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
'L3MON4D3/LuaSnip',
|
||||
},
|
||||
keys = {
|
||||
{ '<leader>nf', function() require('neogen').generate({ type = 'func' }) end, desc = 'Generate function doc' },
|
||||
{ '<leader>nt', function() require('neogen').generate({ type = 'type' }) end, desc = 'Generate type doc' },
|
||||
},
|
||||
config = function()
|
||||
require('neogen').setup({
|
||||
snippet_engine = 'luasnip',
|
||||
})
|
||||
end,
|
||||
-- Uncomment next line if you want to follow only stable versions
|
||||
-- version = "*"
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue