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 c7ff643
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 20 deletions.
5 changes: 1 addition & 4 deletions dot_config/nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,7 @@ return require('packer').startup({
-- end
-- }

use {
'nvim-orgmode/orgmode',
config = function() require('orgmode').setup_ts_grammar() end
}
use 'nvim-orgmode/orgmode'

-- Telescope
use {
Expand Down
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 c7ff643

Please sign in to comment.