Tweak treesitter context to show fewer lines, and to trim inner rather than outer when max is exceeding
This commit is contained in:
parent
30a3299c10
commit
8ae0bf90a7
1 changed files with 6 additions and 0 deletions
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue