nvim: Add treesitter context line maximum number

Show a maximum of three context lines at any time.
This commit is contained in:
Marty Oehme 2025-03-14 22:42:37 +01:00
parent 9c4ef56905
commit 4d6270a9b0
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -5,7 +5,8 @@ return {
-- show current cursor context at top of buffer
-- improves commenting plugin above by using ts
dependencies = {
"nvim-treesitter/nvim-treesitter-context",
-- nice context on top of buffer
{ "nvim-treesitter/nvim-treesitter-context", opts = { max_lines = 3 } },
"JoosepAlviste/nvim-ts-context-commentstring",
"RRethy/nvim-treesitter-textsubjects",
"windwp/nvim-ts-autotag",