mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-27 18:45:22 +00:00
* chore(nvim): remove astronvim and configs * feat(nvim): new, custom nvim configuration
21 lines
890 B
Lua
21 lines
890 B
Lua
local prefix = "<leader>a"
|
|
return {
|
|
"danymat/neogen",
|
|
cmd = "Neogen",
|
|
opts = {
|
|
snippet_engine = "luasnip",
|
|
languages = {
|
|
lua = { template = { annotation_convention = "ldoc" } },
|
|
typescript = { template = { annotation_convention = "tsdoc" } },
|
|
typescriptreact = { template = { annotation_convention = "tsdoc" } },
|
|
},
|
|
},
|
|
keys = {
|
|
{ prefix .. "<cr>", function() require("neogen").generate({ type = "current" }) end, desc = "Current" },
|
|
{ prefix .. "c", function() require("neogen").generate({ type = "class" }) end, desc = "Class" },
|
|
{ prefix .. "f", function() require("neogen").generate({ type = "func" }) end, desc = "Function" },
|
|
{ prefix .. "t", function() require("neogen").generate({ type = "type" }) end, desc = "Type" },
|
|
{ prefix .. "F", function() require("neogen").generate({ type = "file" }) end, desc = "File" },
|
|
},
|
|
}
|