diff options
author | awy <awy@awy.one> | 2024-10-31 04:29:14 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2024-10-31 04:29:14 +0300 |
commit | 156cf8c58fb5c80435c3e0e9c3f8bcc8237fe276 (patch) | |
tree | fc7049ff0617a8072b791a2123dce8ef94430926 /.config/nvim | |
parent | 85a9749e1a047cdd1693fd6c6241618cd66c6de4 (diff) |
more lsp (html doesnt work for some reason)
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/lua/plugins/lsp-config.lua | 6 |
1 files changed, 5 insertions, 1 deletions
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 } } |