From 8a57725f15376b459b756a261d703f7f534a495c Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 7 Feb 2025 16:41:06 +0100 Subject: [PATCH] nvim: Limit indentscope to reasonable max lines Stops looking for a scope after 2000 lines (instead of the default 10000). --- nvim/.config/nvim/lua/plugins/base.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/base.lua b/nvim/.config/nvim/lua/plugins/base.lua index be88221..4cecdab 100644 --- a/nvim/.config/nvim/lua/plugins/base.lua +++ b/nvim/.config/nvim/lua/plugins/base.lua @@ -171,7 +171,7 @@ return { conflict = { suffix = "" }, -- disable to use git-conflict instead diagnostic = { suffix = "d", options = {} }, file = { suffix = "", options = {} }, - indent = { suffix = "" }, -- disable since we use indentscope above + indent = { suffix = "" }, -- disable since we use indentscope jump = { suffix = "j", options = {} }, location = { suffix = "l", options = {} }, oldfile = { suffix = "o", options = {} }, -- FIXME: overwritten by wrapping defaults currently @@ -201,7 +201,7 @@ return { require("mini.indentscope").setup({ symbol = "│", draw = { animation = require("mini.indentscope").gen_animation.none() }, - options = { indent_at_cursor = false }, + options = { indent_at_cursor = false, n_lines = 2000 }, }) -- disable indentlines for terminals vim.api.nvim_create_autocmd("TermOpen", {