Skip to content

Commit 6117dda

Browse files
committed
Remove the additional_vim_regex_highlighting clause which is
discouraged: https://www.reddit.com/r/neovim/comments/yxjrkr/treesitter_syntax_highlighting_too_slow_on_large/
1 parent db4867a commit 6117dda

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

init.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,9 +912,10 @@ require('lazy').setup({
912912
-- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.
913913
-- If you are experiencing weird indenting issues, add the language to
914914
-- the list of additional_vim_regex_highlighting and disabled languages for indent.
915-
additional_vim_regex_highlighting = { 'ruby' },
915+
-- additional_vim_regex_highlighting = { 'ruby' },
916916
},
917-
indent = { enable = true, disable = { 'ruby' } },
917+
-- indent = { enable = true, disable = { 'ruby' } },
918+
indent = { enable = true },
918919
},
919920
-- There are additional nvim-treesitter modules that you can use to interact
920921
-- with nvim-treesitter. You should go explore a few and see what interests you:

0 commit comments

Comments
 (0)