Skip to content

Commit 26beb4a

Browse files
docs: Remove additional_vim_regex_highlighting
This option is no longer needed unless [org_highlight_latex_and_related](https://github.com/nvim-orgmode/orgmode/blob/master/DOCS.md#org_highlight_latex_and_related) is enabled
1 parent 5143eed commit 26beb4a

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

DOCS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,17 @@ Possible values:
266266
* between `\[` and `\]` delimiters - example: `\[ a=-\sqrt{2} \]`
267267
* between `\(` and `\)` delimiters - example: `\( b=2 \)`
268268

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+
269280
#### **org_startup_indented**
270281

271282
*type*: `boolean`<br />

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ Use your favourite package manager:
4545
require('nvim-treesitter.configs').setup({
4646
highlight = {
4747
enable = true,
48-
additional_vim_regex_highlighting = { 'org' },
4948
},
5049
ensure_installed = { 'org' },
5150
})
@@ -110,13 +109,8 @@ require('orgmode').setup_ts_grammar()
110109

111110
-- Treesitter configuration
112111
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
115112
highlight = {
116113
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'},
120114
},
121115
ensure_installed = {'org'}, -- Or run :TSUpdate org
122116
}

scripts/minimal_init.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ require('lazy').setup({
3131
require('nvim-treesitter.configs').setup({
3232
highlight = {
3333
enable = true,
34-
additional_vim_regex_highlighting = { 'org' },
3534
},
3635
ensure_installed = { 'org' },
3736
})

0 commit comments

Comments
 (0)