Update nvim-lspconfig.lua
This commit is contained in:
parent
8d17b34fbe
commit
5359f95ced
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue