Add comment docstring plugin to nvim

This commit is contained in:
Alexander Navarro 2023-11-05 17:30:17 -03:00
parent 688db12b72
commit 6141e5a31f
3 changed files with 17 additions and 0 deletions

View file

@ -30,6 +30,7 @@
"mini.pairs": { "branch": "main", "commit": "6f6bd7ed5757b40bc29c73dac0d743e4e6978124" },
"mini.surround": { "branch": "main", "commit": "9d1956b576d7051da3a483b251dfc778121c60db" },
"neodev.nvim": { "branch": "main", "commit": "d617d9eb27e73e701e446874c6ea2cb528719260" },
"neogen": { "branch": "main", "commit": "cb1f384df804c1bf729332c4f728253fe17962d4" },
"neogit": { "branch": "master", "commit": "01dc0a7e237a4d6d053cea2503f5dd1a81c1e310" },
"noice.nvim": { "branch": "main", "commit": "92433164e2f7118d4122c7674c3834d9511722ba" },
"nui.nvim": { "branch": "main", "commit": "c0c8e347ceac53030f5c1ece1c5a5b6a17a25b32" },

View file

@ -31,4 +31,19 @@ return {
MAP({ "n", "v" }, "gll", cb.cline, "Create a comment line")
end,
},
{
"danymat/neogen",
config = { snippet_engine = "luasnip" },
dependencies = { "nvim-treesitter/nvim-treesitter" },
version = "*", -- stable releases
keys = {
{
"gcd",
function()
require("neogen").generate()
end,
desc = "Generate comment docstring",
},
},
},
}

View file

@ -22,6 +22,7 @@ return {
nmap("<leader>lr", vim.lsp.buf.rename, "Rename")
nmap("<leader>la", vim.lsp.buf.code_action, "Code Action")
nmap("<leader>ld", vim.lsp.buf.type_definition, "Go to type definition")
nmap("<leader>lf", function()
vim.lsp.buf.format()
end, "Format")