Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(editing-support): Add vim-doge #1092

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lua/astrocommunity/editing-support/vim-doge/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vim-doge

(Do)cumentation (Ge)nerator for nearly 20 languages 📚 Generate proper code documentation with a single keypress. ⚡️🔥

**Repository:** <https://github.com/kkoomen/vim-doge>
21 changes: 21 additions & 0 deletions lua/astrocommunity/editing-support/vim-doge/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
return {
"kkoomen/vim-doge",
build = function() vim.cmd "call doge#install()" end,
lazy = false,
dependencies = {
{
"AstroNvim/astrocore",
opts = function(_, opts)
if not opts.options then opts.options = {} end
if not opts.options.g then opts.options.g = {} end
opts.options.g.doge_enable_mappings = 0
local maps = opts.mappings
maps.n["<Leader>a"] = { "<Plug>(doge-generate)", desc = "Generate annotation" }
for _, mode in ipairs { "n", "i", "s" } do
maps[mode]["]D"] = { "<Plug>(doge-comment-jump-forward)" }
maps[mode]["[D"] = { "<Plug>(doge-comment-jump-backward)" }
end
end,
},
},
}
Loading