All additional languages features (LSPs, treesitter parsers, linters and formatters) are now defined in a single place in 'core/languages'. This file simply sets up a big table which contains all the enabled programs and parsers, divided by type. They adhere to the structure given by the respective plugin. HACK: We are still cheating a bit currently for treesitter parsers since I have not had the heart to go through all of them to activate/deactivate what I could need. Most of them are simply still loaded, not connected to a specific language. Will have to be sorted out at some point but it is good enough for now.
13 lines
276 B
Lua
13 lines
276 B
Lua
for _, source in ipairs({
|
|
"core.settings",
|
|
"core.languages",
|
|
"core.lazy",
|
|
"core.commands",
|
|
"core.mappings",
|
|
}) do
|
|
local status_ok, fault = pcall(require, source)
|
|
if not status_ok then
|
|
vim.api.nvim_err_writeln("Failed to load " .. source .. "\n\n" .. fault)
|
|
end
|
|
end
|
|
|