Refactor LSP config and add HTML+CSS servers

This commit is contained in:
Talia 2023-12-07 12:51:42 +01:00
parent 147961de3a
commit 4fbb924030
Signed by: darkwiiplayer
GPG key ID: 7808674088232B3E

View file

@ -1,20 +1,15 @@
local config = require 'lspconfig' local config = require 'lspconfig'
config.lua_ls.setup { local default = { on_attach = require 'lsp.attach' }
on_attach = require 'lsp.attach' for _, language in ipairs {
} "html",
config.zls.setup { "cssls",
on_attach = require 'lsp.attach' "clangd",
} "denols",
config.standardrb.setup { "lua_ls",
on_attach = require 'lsp.attach' "solargraph",
} "standardrb",
config.clangd.setup { "zls",
on_attach = require 'lsp.attach' } do
} config[language].setup(default)
config.solargraph.setup { end
on_attach = require 'lsp.attach'
}
config.denols.setup {
on_attach = require 'lsp.attach'
}