Replace hardcoded parser list with languages.parsers() from the orchestrator. Parsers now match enabled languages from the machine profile.
25 lines
712 B
Lua
25 lines
712 B
Lua
return {
|
|
'nvim-treesitter/nvim-treesitter', -- Enhanced Syntax Parsing and Highlighting
|
|
branch = 'main',
|
|
lazy = false,
|
|
build = ':TSUpdate',
|
|
dependencies = {
|
|
'nvim-tree/nvim-web-devicons', -- NERDFont icons for many plugins
|
|
'nvim-treesitter/nvim-treesitter-context', -- Currently unknown
|
|
},
|
|
config = function()
|
|
-- Additional custom filetype registrations
|
|
vim.filetype.add({
|
|
extension = {
|
|
csproj = "xml",
|
|
sqr = "sql",
|
|
},
|
|
})
|
|
|
|
-- Install parsers defined by enabled language modules
|
|
local languages = require('languages')
|
|
local treesitter = require('nvim-treesitter')
|
|
treesitter.install(languages.parsers())
|
|
end,
|
|
}
|