init
This commit is contained in:
35
nvim/lua/plugins/extras/coding/annotation.lua
Normal file
35
nvim/lua/plugins/extras/coding/annotation.lua
Normal file
@@ -0,0 +1,35 @@
|
||||
local prefix = "<leader>A"
|
||||
|
||||
return {
|
||||
{ import = "lazyvim.plugins.extras.coding.neogen" },
|
||||
{
|
||||
"danymat/neogen",
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ prefix .. "d", function() require("neogen").generate() end, desc = "Default Annotation" },
|
||||
{ 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" },
|
||||
{ "<leader>cn", false },
|
||||
},
|
||||
},
|
||||
{
|
||||
"Zeioth/dooku.nvim",
|
||||
cmd = { "DookuGenerate", "DookuOpen", "DookuAutoSetup" },
|
||||
opts = {},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ prefix .. "g", "<Cmd>DookuGenerate<CR>", desc = "Generate HTML Docs" },
|
||||
{ prefix .. "o", "<Cmd>DookuOpen<CR>", desc = "Open HTML Docs" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = {
|
||||
spec = {
|
||||
{ prefix, group = "annotation/snippets", icon = " " },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user