11return {
22 " nvim-treesitter/nvim-treesitter" ,
33 version = false ,
4+ branch = " main" ,
45 build = " :TSUpdate" ,
56 event = { " BufReadPost" , " BufNewFile" },
67 dependencies = {
78 {
89 " nvim-treesitter/nvim-treesitter-textobjects" ,
10+ branch = " main" ,
911 init = function ()
1012 -- disable rtp plugin, as we only need its queries for mini.ai
1113 -- In case other textobject modules are enabled, we will load them
@@ -14,35 +16,35 @@ return {
1416 vim .g .load_textobjects = true
1517 end ,
1618 },
17- {
18- " nvim-treesitter/nvim-treesitter-context" ,
19- config = function ()
20- require (" treesitter-context" ).setup {
21- -- Enable this plugin (Can be enabled/disabled later via commands)
22- enable = true ,
23- -- Enable multiwindow support.
24- multiwindow = false ,
25- -- How many lines the window should span. Values <= 0 mean no limit.
26- max_lines = 8 ,
27- -- Minimum editor window height to enable context. Values <= 0 mean no limit.
28- min_window_height = 0 ,
29- line_numbers = true ,
30- -- Maximum number of lines to show for a single context
31- multiline_threshold = 20 ,
32- -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
33- trim_scope = ' outer' ,
34- mode = ' cursor' , -- Line used to calculate context. Choices: 'cursor', 'topline'
35- -- Separator between context and content. Should be a single character string, like '-'.
36- -- When separator is set, the context will only show up when there are at least 2 lines above cursorline.
37- separator = nil ,
38- -- The Z-index of the context window
39- zindex = 20 ,
40- -- (fun(buf: integer): boolean) return false to disable attaching
41- on_attach = nil ,
42- }
43- end ,
44- },
45- { ' nvim-treesitter/playground' }
19+ -- {
20+ -- "nvim-treesitter/nvim-treesitter-context",
21+ -- config = function()
22+ -- require("treesitter-context").setup {
23+ -- -- Enable this plugin (Can be enabled/disabled later via commands)
24+ -- enable = true,
25+ -- -- Enable multiwindow support.
26+ -- multiwindow = false,
27+ -- -- How many lines the window should span. Values <= 0 mean no limit.
28+ -- max_lines = 8,
29+ -- -- Minimum editor window height to enable context. Values <= 0 mean no limit.
30+ -- min_window_height = 0,
31+ -- line_numbers = true,
32+ -- -- Maximum number of lines to show for a single context
33+ -- multiline_threshold = 20,
34+ -- -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
35+ -- trim_scope = 'outer',
36+ -- mode = 'cursor', -- Line used to calculate context. Choices: 'cursor', 'topline'
37+ -- -- Separator between context and content. Should be a single character string, like '-'.
38+ -- -- When separator is set, the context will only show up when there are at least 2 lines above cursorline.
39+ -- separator = nil,
40+ -- -- The Z-index of the context window
41+ -- zindex = 20,
42+ -- -- (fun(buf: integer): boolean) return false to disable attaching
43+ -- on_attach = nil,
44+ -- }
45+ -- end,
46+ -- },
47+ -- { 'nvim-treesitter/playground' }
4648 },
4749 cmd = { " TSUpdateSync" },
4850 keys = {
@@ -175,6 +177,6 @@ return {
175177 },
176178 config = function (_ , opts )
177179 --- @diagnostic disable-next-line : missing-fields
178- require ' nvim-treesitter.configs ' .setup (opts )
180+ require ' nvim-treesitter' .setup (opts )
179181 end ,
180182}
0 commit comments