Tweak treesitter context to show fewer lines, and to trim inner rather than outer when max is exceeding

This commit is contained in:
Martin Larsson 2024-05-25 11:15:27 +02:00
parent 30a3299c10
commit 8ae0bf90a7

View file

@ -68,5 +68,11 @@ return {
}, },
}, },
}) })
require("treesitter-context").setup({
max_lines = 2, -- How many lines the window should span. Values <= 0 mean no limit.
multiline_threshold = 3, -- Maximum number of lines to show for a single context
trim_scope = "inner", -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
})
end, end,
} }