refactor(nvim): improve rainbow delims strategy selection

This commit is contained in:
Price Hiller 2024-05-12 10:21:01 -05:00
parent 6481950e18
commit 1ec5545343
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -83,9 +83,9 @@ return {
vim.g.rainbow_delimiters = {
strategy = {
on_attach = function()
if vim.fn.line("$") > 10000 then
if vim.fn.line("$") > 100000 then
return nil
elseif vim.fn.line("$") > 1000 then
elseif vim.fn.line("$") > 10000 then
return rainbow_delimiters.strategy["global"]
end
return rainbow_delimiters.strategy["local"]