mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 06:42:05 +00:00
Update: 2024-10-15
This commit is contained in:
@@ -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
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user