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

@ -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")