diff --git a/lua/nvim-lspconfig.lua b/lua/nvim-lspconfig.lua index d8e2f59..7af96c3 100644 --- a/lua/nvim-lspconfig.lua +++ b/lua/nvim-lspconfig.lua @@ -36,7 +36,7 @@ function on_attach(client) end local lspconf = require "lspconfig" -local servers = {"html", "cssls", "tsserver", "pyright", "bashls"} +local servers = {"html", "cssls", "tsserver", "pyright", "bashls", "ccls", "rust_analyzer", "vls"} for k, lang in pairs(servers) do lspconf[lang].setup { @@ -44,6 +44,11 @@ for k, lang in pairs(servers) do } end +local vls_binary = '/usr/local/bin/vls' +require'lspconfig'.vls.setup { + cmd = {vls_binary}, +} + -- lua lsp settings USER = "/home/" .. vim.fn.expand("$USER")