-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
neovim: remove treesitter for orgmode
- Loading branch information
Showing
1 changed file
with
6 additions
and
16 deletions.
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 |
---|---|---|
@@ -1,20 +1,10 @@ | ||
-- Treesitter configuration | ||
local parser_config = require"nvim-treesitter.parsers".get_parser_configs() | ||
parser_config.org = { | ||
install_info = { | ||
url = 'https://github.com/milisims/tree-sitter-org', | ||
revision = 'main', | ||
files = {'src/parser.c', 'src/scanner.cc'} | ||
}, | ||
filetype = 'org' | ||
} | ||
local parser_config = require "nvim-treesitter.parsers".get_parser_configs() | ||
|
||
require('nvim-treesitter.configs').setup({ | ||
-- If TS highlights are not enabled at all, or disabled via `disable` prop, highlighting will fallback to default Vim syntax highlighting | ||
highlight = { | ||
enable = true, | ||
disable = {'org'}, -- Remove this to use TS highlighter for some of the highlights (Experimental) | ||
additional_vim_regex_highlighting = {'org'} -- Required since TS highlighter doesn't support all syntax features (conceal) | ||
} | ||
-- ensure_installed = "all" | ||
-- If TS highlights are not enabled at all, or disabled via `disable` prop, highlighting will fallback to default Vim syntax highlighting | ||
highlight = { | ||
enable = true, | ||
}, | ||
ensure_installed = "all" | ||
}) |