2022-05-04 02:25:36 +01:00
|
|
|
local present, lsp_installer = pcall(require, "nvim-lsp-installer")
|
|
|
|
|
|
|
|
if not present then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
local options = {
|
|
|
|
-- ensure_installed is not needed as automatic_installation is enabled
|
|
|
|
-- then any lsp server you setup by lspconfig is going to get installed automatically!
|
|
|
|
|
|
|
|
-- ensure_installed = { "lua" },
|
|
|
|
automatic_installation = true,
|
|
|
|
|
|
|
|
ui = {
|
|
|
|
icons = {
|
2022-05-29 05:46:31 +01:00
|
|
|
server_installed = " ",
|
|
|
|
server_pending = " ",
|
|
|
|
server_uninstalled = " ﮊ",
|
2022-05-04 02:25:36 +01:00
|
|
|
},
|
|
|
|
keymaps = {
|
|
|
|
toggle_server_expand = "<CR>",
|
|
|
|
install_server = "i",
|
|
|
|
update_server = "u",
|
|
|
|
check_server_version = "c",
|
|
|
|
update_all_servers = "U",
|
|
|
|
check_outdated_servers = "C",
|
|
|
|
uninstall_server = "X",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2022-06-18 05:27:17 +01:00
|
|
|
max_concurrent_installers = 10,
|
2022-05-04 02:25:36 +01:00
|
|
|
}
|
|
|
|
|
2022-05-29 11:37:47 +01:00
|
|
|
options = require("core.utils").load_override(options, "williamboman/nvim-lsp-installer")
|
2022-05-04 02:25:36 +01:00
|
|
|
|
|
|
|
lsp_installer.setup(options)
|