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',
|
'https://github.com/nvim-treesitter/nvim-treesitter',
|
||||||
run = function()
|
run = function()
|
||||||
require('nvim-treesitter.install').update({ with_sync = true })
|
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
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,12 +23,6 @@ packer.use {
|
||||||
config = function()
|
config = function()
|
||||||
require('orgmode').setup{}
|
require('orgmode').setup{}
|
||||||
require('orgmode').setup_ts_grammar()
|
require('orgmode').setup_ts_grammar()
|
||||||
require'nvim-treesitter.configs'.setup {
|
end,
|
||||||
highlight = {
|
ft = 'org'
|
||||||
enable = true,
|
|
||||||
additional_vim_regex_highlighting = {'org'}
|
|
||||||
},
|
|
||||||
ensure_installed = {'org'},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user