From c88b82e9f69cf8be39fc52911b2a39f32b57bae2 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 8 Dec 2024 15:05:09 -0800 Subject: [PATCH] feat: nvim-treesitter-textobjects --- nix/neovim-overlay.nix | 1 + nvim/lua/plugins/treesitter/init.lua | 1 + .../lua/plugins/treesitter/nvim-treesitter-textobjects.lua | 7 +++++++ 3 files changed, 9 insertions(+) create mode 100644 nvim/lua/plugins/treesitter/nvim-treesitter-textobjects.lua diff --git a/nix/neovim-overlay.nix b/nix/neovim-overlay.nix index add07f5..7e8a478 100644 --- a/nix/neovim-overlay.nix +++ b/nix/neovim-overlay.nix @@ -57,6 +57,7 @@ with final.pkgs.lib; let gitsigns-nvim # Treesitter + nvim-treesitter-textobjects (nvim-treesitter.withPlugins ( plugins: with plugins; [ diff --git a/nvim/lua/plugins/treesitter/init.lua b/nvim/lua/plugins/treesitter/init.lua index 1470c19..a6c1344 100644 --- a/nvim/lua/plugins/treesitter/init.lua +++ b/nvim/lua/plugins/treesitter/init.lua @@ -1,5 +1,6 @@ local req = MarleyVim.local_require('plugins.treesitter') return { + req('nvim-treesitter-textobjects'), req('nvim-treesitter'), } diff --git a/nvim/lua/plugins/treesitter/nvim-treesitter-textobjects.lua b/nvim/lua/plugins/treesitter/nvim-treesitter-textobjects.lua new file mode 100644 index 0000000..8deffdf --- /dev/null +++ b/nvim/lua/plugins/treesitter/nvim-treesitter-textobjects.lua @@ -0,0 +1,7 @@ +return { + 'nvim-treesitter-textobjects', + event = 'DeferredUIEnter', + before = function() + require('lz.n').trigger_load('nvim-treesitter') + end, +}