Add html and JS LSP

This commit is contained in:
MimiValsi 2024-09-28 08:47:19 +02:00
parent d4cec8f14b
commit e5349a0cb3
1 changed files with 11 additions and 1 deletions

View File

@ -156,6 +156,11 @@ return {
filetypes = { 'c', 'cpp' }, filetypes = { 'c', 'cpp' },
}, },
html = {},
-- biome = {},
-- quick_lint_js = {},
gopls = { gopls = {
settings = { settings = {
gopls = { gopls = {
@ -180,7 +185,7 @@ return {
-- --
-- But for many setups, the LSP (`tsserver`) will work just fine -- But for many setups, the LSP (`tsserver`) will work just fine
-- tsserver = {}, -- tsserver = {},
-- -- ts_ls = {},
lua_ls = { lua_ls = {
-- cmd = {...}, -- cmd = {...},
@ -215,6 +220,11 @@ return {
require('mason-tool-installer').setup { ensure_installed = ensure_installed } require('mason-tool-installer').setup { ensure_installed = ensure_installed }
require('mason-lspconfig').setup { require('mason-lspconfig').setup {
function(server_name)
if server_name == 'tsserver' then
server_name = 'ts_ls'
end
end,
handlers = { handlers = {
function(server_name) function(server_name)
local server = servers[server_name] or {} local server = servers[server_name] or {}