From 1b063106504f56718f5cef08823d3b6b9c87f97e Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Wed, 1 Feb 2023 17:30:08 +0000 Subject: Remove indent-blanklinke. It is pretty slow --- lua/treesitter-textobjects-setup.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/treesitter-textobjects-setup.lua b/lua/treesitter-textobjects-setup.lua index bcb4bd9..1c5cf84 100644 --- a/lua/treesitter-textobjects-setup.lua +++ b/lua/treesitter-textobjects-setup.lua @@ -41,7 +41,8 @@ require'nvim-treesitter.configs'.setup { -- * selection_mode: eg 'v' -- and should return true of false include_surrounding_whitespace = function (q) - return string.match(q.query_string, '.inner$') == nil + return string.match(q.query_string, '.inner$') == nil and + string.match(q.query_string, '^function') end, }, }, -- cgit