Closed 9qq-qq-qq9 closed 4 months ago
You can use the large_file_overrides
and large_file_cutoff
config options to change how vim-illuminate works for large files.
Treesitter is known to be slow for large files and there is nothing I can do, regex and LSP are likely faster, or you could disable the plugin at a certain file size.
Describe the bug vim-illuminate causes lag when navigating and editing larger files if the provider is treesitter.
To Reproduce Steps to reproduce the behavior (include minimal
init.vim
or.vimrc
):obtain a fresh installation of neovim and place the following config inside your init.lua:
require("lazy").setup({ { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", config = function() local tsconfig = require("nvim-treesitter.configs") tsconfig.setup({ auto_install = true, highlight = { enable = true }, indent = { enable = true }, }) end }, { "RRethy/vim-illuminate", config = function() require("illuminate").configure({ providers = { "treesitter", "lsp", "regex", } }) end } })
buf_should_illuminate 1 true config { case_insensitive_regex = false, delay = 100, filetype_overrides = {}, filetypes_allowlist = {}, filetypes_denylist = {"dirbuf", "dirvish", "fugitive"}, min_count_to_highlight = 1, modes_allowlist = {}, modes_denylist = {}, providers = {"treesitter","lsp", "regex"}, providers_regex_syntax_allowlist = {}, providers_regex_syntax_denylist = {}, under_cursor = true } started true provider table: 0x7fe495098cb8 treesitter
termguicolors
true