File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,17 @@ Possible values:
266
266
* between ` \[ ` and ` \] ` delimiters - example: ` \[ a=-\sqrt{2} \] `
267
267
* between ` \( ` and ` \) ` delimiters - example: ` \( b=2 \) `
268
268
269
+ ** This option requires setting ` additional_vim_regex_highlighting = {'org'} ` in tree-sitter configuration since its old Vim syntax** :
270
+ ``` lua
271
+ require (' nvim-treesitter.configs' ).setup {
272
+ highlight = {
273
+ enable = true ,
274
+ additional_vim_regex_highlighting = {' org' }, -- This line is needed
275
+ },
276
+ ensure_installed = {' org' },
277
+ }
278
+ ```
279
+
269
280
#### ** org_startup_indented**
270
281
271
282
* type* : ` boolean ` <br />
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ Use your favourite package manager:
45
45
require (' nvim-treesitter.configs' ).setup ({
46
46
highlight = {
47
47
enable = true ,
48
- additional_vim_regex_highlighting = { ' org' },
49
48
},
50
49
ensure_installed = { ' org' },
51
50
})
@@ -110,13 +109,8 @@ require('orgmode').setup_ts_grammar()
110
109
111
110
-- Treesitter configuration
112
111
require (' nvim-treesitter.configs' ).setup {
113
- -- If TS highlights are not enabled at all, or disabled via `disable` prop,
114
- -- highlighting will fallback to default Vim syntax highlighting
115
112
highlight = {
116
113
enable = true ,
117
- -- Required for spellcheck, some LaTex highlights and
118
- -- code block highlights that do not have ts grammar
119
- additional_vim_regex_highlighting = {' org' },
120
114
},
121
115
ensure_installed = {' org' }, -- Or run :TSUpdate org
122
116
}
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ require('lazy').setup({
31
31
require (' nvim-treesitter.configs' ).setup ({
32
32
highlight = {
33
33
enable = true ,
34
- additional_vim_regex_highlighting = { ' org' },
35
34
},
36
35
ensure_installed = { ' org' },
37
36
})
You can’t perform that action at this time.
0 commit comments