forked from ayamir/nvimdots
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(nvim-treesitter-context): setup to enable (ayamir#828) Change-Id: I7942ac85bf3791f7487eb15fae9cb6c0aa3c6b71 * fixup! fix(nvim-treesitter-context): setup to enable (ayamir#828) * fixup! fixup! fix(nvim-treesitter-context): setup to enable (ayamir#828) --------- Co-authored-by: Jint-lzxy <[email protected]>
- Loading branch information
1 parent
5c6f073
commit 5906952
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
return function() | ||
require("treesitter-context").setup({ | ||
enable = true, | ||
max_lines = 0, -- 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 = "cursor", -- Line used to calculate context. Choices: 'cursor', 'topline' | ||
zindex = 30, | ||
}) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters