Skip to content

Commit

Permalink
neovim: remove treesitter for orgmode
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Sep 28, 2024
1 parent fcd8bc7 commit db07740
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions dot_config/nvim/lua/plugins/treesitter.lua
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"
})

0 comments on commit db07740

Please sign in to comment.