fix: replace deprecated nvim-treesitter.configs with opts for v1.0 compatibility
This commit is contained in:
parent
d4d7352784
commit
08e97fd430
15
init.lua
15
init.lua
|
|
@ -994,15 +994,12 @@ require('lazy').setup({
|
||||||
{ -- Highlight, edit, and navigate code
|
{ -- Highlight, edit, and navigate code
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
build = ':TSUpdate',
|
build = ':TSUpdate',
|
||||||
config = function()
|
opts = {
|
||||||
---@diagnostic disable-next-line: missing-fields
|
ensure_installed = { 'bash', 'c', 'css', 'diff', 'html', 'java', 'javascript', 'json', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'tsx', 'typescript', 'vim', 'vimdoc', 'vue' },
|
||||||
require('nvim-treesitter.configs').setup {
|
auto_install = true,
|
||||||
ensure_installed = { 'bash', 'c', 'css', 'diff', 'html', 'java', 'javascript', 'json', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'tsx', 'typescript', 'vim', 'vimdoc', 'vue' },
|
highlight = { enable = true },
|
||||||
auto_install = true,
|
indent = { enable = true },
|
||||||
highlight = { enable = true },
|
},
|
||||||
indent = { enable = true },
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
|
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue