diff --git a/.config/nvim/lua/josean/plugins/lsp/lspconfig.lua b/.config/nvim/lua/josean/plugins/lsp/lspconfig.lua index 485c20a..39a89ef 100644 --- a/.config/nvim/lua/josean/plugins/lsp/lspconfig.lua +++ b/.config/nvim/lua/josean/plugins/lsp/lspconfig.lua @@ -82,6 +82,13 @@ lspconfig["tailwindcss"].setup({ on_attach = on_attach, }) +-- configure emmet language server +lspconfig["emmet_ls"].setup({ + capabilities = capabilities, + on_attach = on_attach, + filetypes = { "html", "typescriptreact", "javascriptreact", "css", "sass", "scss", "less", "svelte" }, +}) + -- configure lua server (with special settings) lspconfig["sumneko_lua"].setup({ capabilities = capabilities, diff --git a/.config/nvim/lua/josean/plugins/lsp/mason.lua b/.config/nvim/lua/josean/plugins/lsp/mason.lua index 2677f06..a03755a 100644 --- a/.config/nvim/lua/josean/plugins/lsp/mason.lua +++ b/.config/nvim/lua/josean/plugins/lsp/mason.lua @@ -27,6 +27,7 @@ mason_lspconfig.setup({ "cssls", "tailwindcss", "sumneko_lua", + "emmet_ls", }, -- auto-install configured servers (with lspconfig) automatic_installation = true, -- not the same as ensure_installed