add(nvim): treesitter-context minimal setup

This commit is contained in:
Léana 江 2023-11-17 09:37:10 +01:00 committed by Léana 江
parent a2bc682f08
commit cdb42409bf
3 changed files with 13 additions and 13 deletions

View file

@ -46,13 +46,13 @@ vim.defer_fn(function()
}
end, 0)
-- require "treesitter-context".setup {
-- enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
-- max_lines = 7, -- How many lines the window should span. Values < = 0 mean no limit.
-- min_window_height = 0, -- Minimum editor window height to enable context. Values < = 0 mean no limit.
-- line_numbers = true,
-- multiline_threshold = 20, -- Maximum number of lines to collapse for a single context line
-- trim_scope = "outer", -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
-- mode = "topline", -- Line used to calculate context. Choices: 'cursor', 'topline'
-- zindex = 20, -- The Z-index of the context window
-- }
require "treesitter-context".setup {
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
max_lines = 2, -- How many lines the window should span. Values < = 0 mean no limit.
min_window_height = 0, -- Minimum editor window height to enable context. Values < = 0 mean no limit.
line_numbers = true,
multiline_threshold = 20, -- Maximum number of lines to collapse for a single context line
trim_scope = "outer", -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
mode = "topline", -- Line used to calculate context. Choices: 'cursor', 'topline'
zindex = 20, -- The Z-index of the context window
}