Skip to content

Commit

Permalink
neogen: set python as google docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
onjin committed Jun 6, 2024
1 parent 8f923e1 commit 4c4e74d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion lua/custom/plugins/comments.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
return {
"danymat/neogen",
config = true,
config = function()
require("neogen").setup {
enabled = true,
languages = {
lua = {
template = {
annotation_convention = "emmylua", -- for a full list of annotation_conventions, see supported-languages below,
},
},
python = {
template = {
annotation_convention = "google_docstrings",
},
},
},
}
end,
-- Uncomment next line if you want to follow only stable versions
-- version = "*"
}
2 changes: 1 addition & 1 deletion lua/custom/plugins/harpoon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ return {
for _, idx in ipairs { 1, 2, 3, 4, 5 } do
vim.keymap.set("n", string.format("<space>%d", idx), function()
harpoon:list():select(idx)
end)
end, { desc = string.format("Harpoon item jump %s", idx) })
end

harpoon:extend {
Expand Down

0 comments on commit 4c4e74d

Please sign in to comment.