diff --git a/lua/astrocommunity/editing-support/vim-doge/README.md b/lua/astrocommunity/editing-support/vim-doge/README.md new file mode 100644 index 000000000..a4b9b4e1b --- /dev/null +++ b/lua/astrocommunity/editing-support/vim-doge/README.md @@ -0,0 +1,5 @@ +# vim-doge + +(Do)cumentation (Ge)nerator for nearly 20 languages 📚 Generate proper code documentation with a single keypress. ⚡️🔥 + +**Repository:** diff --git a/lua/astrocommunity/editing-support/vim-doge/init.lua b/lua/astrocommunity/editing-support/vim-doge/init.lua new file mode 100644 index 000000000..077349bb0 --- /dev/null +++ b/lua/astrocommunity/editing-support/vim-doge/init.lua @@ -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["a"] = { "(doge-generate)", desc = "Generate annotation" } + for _, mode in ipairs { "n", "i", "s" } do + maps[mode]["]D"] = { "(doge-comment-jump-forward)" } + maps[mode]["[D"] = { "(doge-comment-jump-backward)" } + end + end, + }, + }, +}