From 1ec5545343e9339faa6c29846ff85c8e57a76f67 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 12 May 2024 10:21:01 -0500 Subject: [PATCH] refactor(nvim): improve rainbow delims strategy selection --- .../dots/.config/nvim/lua/plugins/configs/treesitter.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/treesitter.lua b/users/price/dots/.config/nvim/lua/plugins/configs/treesitter.lua index 24173df4..8fc4ab7a 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/treesitter.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/treesitter.lua @@ -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"]