Update: 2024-10-15

This commit is contained in:
2024-10-15 20:59:39 +03:00
parent 89989c222f
commit 814425e4b7
41 changed files with 1044 additions and 546 deletions

View File

@@ -1,6 +1,27 @@
return {
"danymat/neogen",
dependencies = { "nvim-treesitter/nvim-treesitter" },
config = true,
version = "*",
cmd = { "Neogen" },
keys = {
{
"<leader>ss",
function()
require("neogen").generate()
end,
desc = "Generate docstings",
},
},
opts = {
enabled = true,
input_after_comment = true, -- (default: true) automatic jump (with insert mode) on inserted annotation
snippet_engine = "luasnip",
languages = {
python = {
template = {
annotation_convention = "google_docstrings", -- google_docstrings, numpydoc, reST
},
},
},
},
}