From 587f1baefd6006fc22df47da22d5899ca69d3039 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 8 Dec 2024 20:59:22 -0800 Subject: [PATCH] feat: ts-comments.nvim --- nix/neovim-overlay.nix | 1 + nvim/lua/plugins/coding/init.lua | 1 + nvim/lua/plugins/coding/ts-comments-nvim.lua | 7 +++++++ 3 files changed, 9 insertions(+) create mode 100644 nvim/lua/plugins/coding/ts-comments-nvim.lua diff --git a/nix/neovim-overlay.nix b/nix/neovim-overlay.nix index 39c412b..03cec6f 100644 --- a/nix/neovim-overlay.nix +++ b/nix/neovim-overlay.nix @@ -57,6 +57,7 @@ with final.pkgs.lib; let friendly-snippets lexima-vim (mkNvimPlugin inputs.neotab-nvim "neotab.nvim") + ts-comments-nvim # Treesitter nvim-treesitter-textobjects diff --git a/nvim/lua/plugins/coding/init.lua b/nvim/lua/plugins/coding/init.lua index e800f9b..74a362a 100644 --- a/nvim/lua/plugins/coding/init.lua +++ b/nvim/lua/plugins/coding/init.lua @@ -4,4 +4,5 @@ return { req('friendly-snippets'), req('lexima-vim'), req('neotab-nvim'), + req('ts-comments-nvim'), } diff --git a/nvim/lua/plugins/coding/ts-comments-nvim.lua b/nvim/lua/plugins/coding/ts-comments-nvim.lua new file mode 100644 index 0000000..06e73cb --- /dev/null +++ b/nvim/lua/plugins/coding/ts-comments-nvim.lua @@ -0,0 +1,7 @@ +return { + 'ts-comments.nvim', + event = 'DeferredUIEnter', + after = function() + require('ts-comments').setup({}) + end, +}