nvim: re-arrange treesitter config
This commit is contained in:
parent
186544c088
commit
0e14ee24f2
|
@ -4,6 +4,15 @@ packer.use {
|
|||
'https://github.com/nvim-treesitter/nvim-treesitter',
|
||||
run = function()
|
||||
require('nvim-treesitter.install').update({ with_sync = true })
|
||||
end,
|
||||
config = function()
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = {'org'}
|
||||
},
|
||||
ensure_installed = {'org'},
|
||||
}
|
||||
end
|
||||
}
|
||||
|
||||
|
@ -14,12 +23,6 @@ packer.use {
|
|||
config = function()
|
||||
require('orgmode').setup{}
|
||||
require('orgmode').setup_ts_grammar()
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = {'org'}
|
||||
},
|
||||
ensure_installed = {'org'},
|
||||
}
|
||||
end
|
||||
end,
|
||||
ft = 'org'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user