fix: update treesitter config to use setup function
This commit is contained in:
parent
1add6760cf
commit
75a73ea4ff
|
|
@ -2,7 +2,9 @@ return {
|
||||||
{ -- Highlight, edit, and navigate code
|
{ -- Highlight, edit, and navigate code
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
build = ':TSUpdate',
|
build = ':TSUpdate',
|
||||||
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
|
config = function(_, opts)
|
||||||
|
require('nvim-treesitter.config').setup(opts)
|
||||||
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
'bash',
|
'bash',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue