Each module defines its LSP servers, treesitter parsers, mason packages, optional plugins, and per-filetype cmp source overrides. Modules: rust (with snippet-free cmp config), csharp, c (clangd), nix (nil_ls), python, web (ts_ls + html + tailwindcss), defaults (lua_ls + bashls + common parsers). Not yet wired into the plugin system ??? the orchestrator does that next.
37 lines
1.1 KiB
Lua
37 lines
1.1 KiB
Lua
-- Language module: Web (TypeScript, HTML, Tailwind CSS)
|
|
local shared = require('languages._shared')
|
|
|
|
return {
|
|
servers = {
|
|
ts_ls = {
|
|
capabilities = shared.make_capabilities(false),
|
|
init_options = {
|
|
preferences = {
|
|
includeInlayParameterNameHints = 'all',
|
|
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
|
|
includeInlayFunctionParameterTypeHints = true,
|
|
includeInlayVariableTypeHints = true,
|
|
includeInlayPropertyDeclarationTypeHints = true,
|
|
includeInlayFunctionLikeReturnTypeHints = true,
|
|
includeInlayEnumMemberValueHints = true,
|
|
importModuleSpecifierPreference = 'non-relative',
|
|
},
|
|
},
|
|
},
|
|
html = {
|
|
capabilities = shared.make_capabilities(false),
|
|
},
|
|
tailwindcss = {
|
|
capabilities = shared.make_capabilities(false),
|
|
},
|
|
},
|
|
|
|
parsers = { "javascript", "typescript", "html", "css", "json" },
|
|
|
|
mason_packages = { "typescript-language-server", "html-lsp", "tailwindcss-language-server" },
|
|
|
|
plugins = {},
|
|
|
|
cmp_filetypes = {},
|
|
}
|