From e6a9c32505e94f8af80fdbe65a095c61b35b6969 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Wed, 1 Apr 2026 13:50:21 +0100 Subject: [PATCH] Add plugin to generate Doxygen style comments --- lua/plugins/treesitter.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index caacf0f..41a1e0d 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -7,6 +7,7 @@ return { -- TODO: Fork this and add CMake support -- TODO: Add shell support (sh/bash/zsh if/for/while/etc) 'RRethy/nvim-treesitter-endwise', + 'danymat/neogen', }, build = ':TSUpdate', config = function() @@ -99,9 +100,8 @@ return { }, }) - -- Keymaps - vim.keymap.set('n', 'fm', function() - vim.o.foldmethod = 'expr' - end, {}) + require('neogen').setup({ snippet_engine = 'luasnip' }) + vim.keymap.set('n', 'd', require('neogen').generate, + { desc = 'Generate documentation' }) end }