From d0ad91ebf38a31642eccef4c32666fa5023418f8 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 20 Aug 2024 09:30:40 +0200 Subject: nvim: lsp add many lang servers ts/js, html, css, vala --- .config/nvim/lua/plugins/lsp.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.config/nvim/lua/plugins') diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index f2bad81..8c08448 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua @@ -68,6 +68,16 @@ return { local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities = require("cmp_nvim_lsp").default_capabilities(capabilities) + -- misc. + local lspconfig = require('lspconfig') + local servers = { 'tsserver', 'jsonls', 'eslint', 'cssls', 'html', 'vala_ls' } + for _, lsp in pairs(servers) do + lspconfig[lsp].setup { + on_attach = on_attach, + capabilites = capabilities, + } + end + -- lua require("lspconfig")["lua_ls"].setup({ on_attach = on_attach, -- cgit v1.2.3-70-g09d2