Update nvim-lspconfig.lua

This commit is contained in:
mTvare 2021-05-06 22:34:12 +05:30 committed by GitHub
parent 8d17b34fbe
commit 5359f95ced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -36,7 +36,7 @@ function on_attach(client)
end end
local lspconf = require "lspconfig" 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 for k, lang in pairs(servers) do
lspconf[lang].setup { lspconf[lang].setup {
@ -44,6 +44,11 @@ for k, lang in pairs(servers) do
} }
end end
local vls_binary = '/usr/local/bin/vls'
require'lspconfig'.vls.setup {
cmd = {vls_binary},
}
-- lua lsp settings -- lua lsp settings
USER = "/home/" .. vim.fn.expand("$USER") USER = "/home/" .. vim.fn.expand("$USER")