From 1c8890fd956e73f5d8bb0246c27c045962e50a73 Mon Sep 17 00:00:00 2001 From: josean-dev Date: Sun, 6 Nov 2022 17:35:01 -0400 Subject: [PATCH] Added emmet_ls lsp to the config --- .config/nvim/lua/josean/plugins/lsp/lspconfig.lua | 7 +++++++ .config/nvim/lua/josean/plugins/lsp/mason.lua | 1 + 2 files changed, 8 insertions(+) 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