neovim-config/lua/plugins/configs/lsp_installer.lua
Anonymous1231-dev 6e063cb3e3 chore: Add some beautiful icons
Signed-off-by: Anonymous1231-dev <87801676+Anonymous1231-dev@users.noreply.github.com>
2022-05-29 10:22:18 +05:30

36 lines
923 B
Lua

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 = {
server_installed = "",
server_pending = "",
server_uninstalled = "",
},
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",
},
},
max_concurrent_installers = 20,
}
options = nvchad.load_override(options, "williamboman/nvim-lsp-installer")
lsp_installer.setup(options)