nvim: Limit indentscope to reasonable max lines
Stops looking for a scope after 2000 lines (instead of the default 10000).
This commit is contained in:
parent
d3e325db86
commit
8a57725f15
1 changed files with 2 additions and 2 deletions
|
|
@ -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", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue