From 5359f95cedffc0d4e1bdcc6dc09b13584eeac93a Mon Sep 17 00:00:00 2001 From: mTvare <57838468+mTvare6@users.noreply.github.com> Date: Thu, 6 May 2021 22:34:12 +0530 Subject: [PATCH] Update nvim-lspconfig.lua --- lua/nvim-lspconfig.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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")