nvim: re-arrange treesitter config

This commit is contained in:
tastytea 2022-08-10 21:53:02 +02:00
parent 186544c088
commit 0e14ee24f2
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -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'
}