Files
dotfiles/nvim/lua/plugins/neogen.lua
T

20 lines
562 B
Lua

return {
"danymat/neogen",
config = function()
require("neogen").setup({
enabled = true,
snippet_engine = "luasnip",
placeholders_hl = "None", -- fixes weird bug where the entire page gets colored with this color
languages = {
python = {
template = {
annotation_convention = "google_docstrings"
}
}
}
})
nmap('<leader>d', ":lua require('neogen').generate()<CR>")
end
}