that fixed it???
This commit is contained in:
@@ -1,34 +1,3 @@
|
||||
local lsp_installer = require'nvim-lsp-installer'
|
||||
local lsp_installer_servers = require'nvim-lsp-installer.servers'
|
||||
|
||||
-- install LSP servers
|
||||
local function installServer(name)
|
||||
local ok, server = lsp_installer_servers.get_server(name)
|
||||
if ok then
|
||||
if not server:is_installed() then
|
||||
server:install()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local function installServers(names)
|
||||
for _,name in pairs(names) do
|
||||
installServer(name)
|
||||
end
|
||||
end
|
||||
|
||||
-- find a list of available ones here: https://github.com/williamboman/nvim-lsp-installer
|
||||
installServers({'angularls', 'bashls', 'dockerls', 'lua_ls', 'pyright', 'jsonls', 'cssls', 'tsserver'})
|
||||
|
||||
-- setup installed servers
|
||||
lsp_installer.on_server_ready(function(server)
|
||||
local opts = {}
|
||||
|
||||
-- This setup() function is exactly the same as lspconfig's setup function.
|
||||
-- Refer to https://github.com/neovim/nvim-lspconfig/blob/master/ADVANCED_README.md
|
||||
server:setup(opts)
|
||||
end)
|
||||
|
||||
-- diagnostic symbols
|
||||
local signs = { Error = "", Warn = "", Hint = "", Info = ""}
|
||||
for type, icon in pairs(signs) do
|
||||
|
||||
Reference in New Issue
Block a user