Add comment docstring plugin to nvim
This commit is contained in:
parent
688db12b72
commit
6141e5a31f
3 changed files with 17 additions and 0 deletions
|
|
@ -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",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue