2024-09-07 18:39:22 +00:00
|
|
|
local T = require('toolchain')
|
|
|
|
local M = {}
|
|
|
|
|
2024-09-07 23:50:39 +00:00
|
|
|
function M.setup()
|
2024-09-10 07:41:43 +00:00
|
|
|
T.add_highlighter_autoinstalls('lua', 'luadoc')
|
2024-09-07 18:39:22 +00:00
|
|
|
|
|
|
|
T.add_null_ls_module(function(null_ls)
|
|
|
|
return {
|
|
|
|
-- Formatter
|
|
|
|
null_ls.builtins.formatting.stylua,
|
|
|
|
}
|
|
|
|
end)
|
|
|
|
T.add_lsp_autoinstalls('lua_ls')
|
|
|
|
|
|
|
|
T.add_lsps(function(lspconfig, capabilities)
|
2024-09-10 07:41:43 +00:00
|
|
|
lspconfig.lua_ls.setup({ capabilities = capabilities })
|
2024-09-07 18:39:22 +00:00
|
|
|
end)
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|