From 156cf8c58fb5c80435c3e0e9c3f8bcc8237fe276 Mon Sep 17 00:00:00 2001 From: awy Date: Thu, 31 Oct 2024 04:29:14 +0300 Subject: more lsp (html doesnt work for some reason) --- .config/nvim/lua/plugins/lsp-config.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.config/nvim/lua/plugins/lsp-config.lua') diff --git a/.config/nvim/lua/plugins/lsp-config.lua b/.config/nvim/lua/plugins/lsp-config.lua index 6ec699b..7178d3e 100644 --- a/.config/nvim/lua/plugins/lsp-config.lua +++ b/.config/nvim/lua/plugins/lsp-config.lua @@ -9,7 +9,7 @@ return { "williamboman/mason-lspconfig.nvim", config = function() require("mason-lspconfig").setup({ - ensure_installed = { "lua_ls", "clangd" } + ensure_installed = { "lua_ls", "clangd", "html", "cssls" } }) end }, @@ -17,8 +17,12 @@ return { "neovim/nvim-lspconfig", config = function() local lspconfig = require("lspconfig") + local capabilities = vim.lsp.protocol.make_client_capabilities() + capabilities.textDocument.completion.completionItem.snippetSupport = true lspconfig.lua_ls.setup({}) lspconfig.clangd.setup({}) + lspconfig.html.setup({capabilities = capabilities,}) + lspconfig.cssls.setup({capabilities = capabilities,}) end } } -- cgit v1.2.3