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, +}