neovim-config/lua/plugins/neogen.lua

19 lines
515 B
Lua
Raw Normal View History

2023-12-01 20:26:03 +00:00
return {
"danymat/neogen",
dependencies = "nvim-treesitter/nvim-treesitter",
config = true,
-- Uncomment next line if you want to follow only stable versions
-- version = "*"
opts = {
snippet_engine = "luasnip",
},
keys = {
2023-12-01 20:26:03 +00:00
{ "<leader>nf", "<cmd>lua require('neogen').generate()<CR>", desc = "Generate Neogen function annotation" },
2023-12-01 20:26:03 +00:00
{
"<leader>nc",
"<cmd>lua require('neogen').generate({ type = 'class' })<CR>",
2023-12-01 20:26:03 +00:00
desc = "Generate Neogen class annotation",
2023-12-01 20:26:03 +00:00
},
},
}