diff options
author | Josh Rahm <rahm@google.com> | 2023-02-01 17:30:08 +0000 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2023-02-01 17:30:08 +0000 |
commit | 1b063106504f56718f5cef08823d3b6b9c87f97e (patch) | |
tree | 9df927f450263eeff551522edb2b3fdb7e6fc2db /lua/treesitter-textobjects-setup.lua | |
parent | d9002f85dfb83f22d47c0d2a94a365b03843c137 (diff) | |
download | config.vim-1b063106504f56718f5cef08823d3b6b9c87f97e.tar.gz config.vim-1b063106504f56718f5cef08823d3b6b9c87f97e.tar.bz2 config.vim-1b063106504f56718f5cef08823d3b6b9c87f97e.zip |
Remove indent-blanklinke. It is pretty slow
Diffstat (limited to 'lua/treesitter-textobjects-setup.lua')
-rw-r--r-- | lua/treesitter-textobjects-setup.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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, }, }, |