I still am experiencing some minor issues, when it comes to comment placement, and inconsitencies with jsonc, for instance. However, there's only so much one can do.
17 lines
390 B
Lua
17 lines
390 B
Lua
---@module 'lazy'
|
|
---@type LazySpec
|
|
return { {
|
|
'nvim-treesitter/nvim-treesitter', -- highlight, edit, and navigate code
|
|
build = ':TSUpdate',
|
|
lazy = false,
|
|
config = function()
|
|
Autocmd('FileType', {
|
|
pattern = require('nvim-treesitter').get_available(),
|
|
callback = function(ft)
|
|
require('nvim-treesitter').install(ft.match)
|
|
pcall(vim.treesitter.start)
|
|
end
|
|
})
|
|
end,
|
|
} }
|