From e00fc002a6441fa3741d1f705337efbbd8850744 Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Mon, 9 Dec 2024 10:44:18 -0300 Subject: Cambios varios. --- lua/plugins/code-annotation.lua | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 lua/plugins/code-annotation.lua (limited to 'lua/plugins/code-annotation.lua') diff --git a/lua/plugins/code-annotation.lua b/lua/plugins/code-annotation.lua new file mode 100644 index 0000000..eae61d0 --- /dev/null +++ b/lua/plugins/code-annotation.lua @@ -0,0 +1,35 @@ +local neogeo_opts = {} + +if not vim.g.vscode then + neogeo_opts = { + enabled = true, + -- Only use luasnip as snippet engine if that is not vscode + snippet_engine = "luasnip", + } +end + +return { + -- JsDoc generator + { + "heavenshell/vim-jsdoc", + ft = "javascript,typescript,typescriptreact,svelte", + cmd = "JsDoc", + keys = { + { "jd", "JsDoc", desc = "JsDoc" }, + }, + -- make sure that you will have lehre install locally on plugin folder, refer https://github.com/heavenshell/vim-jsdoc#manual-installation + build = "make install", + }, + { + -- A better annotation generator. Supports multiple languages and annotation conventions. + -- to jump to next annotation, to jump to previous annotation + "danymat/neogen", + vscode = true, + dependencies = "nvim-treesitter/nvim-treesitter", + opts = neogeo_opts, + cmd = "Neogen", + keys = { + { "ci", "Neogen", desc = "Neogen - Annotation generator" }, + }, + }, +} -- cgit v1.2.3