From 4613529ab1f39ddd611b22d31bb88cfdfe851ce5 Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 23 May 2022 18:03:13 +0200 Subject: feat: add setting to disable automatic version check when opening UI window (#716) --- lua/nvim-lsp-installer/ui/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/nvim-lsp-installer/ui/init.lua') diff --git a/lua/nvim-lsp-installer/ui/init.lua b/lua/nvim-lsp-installer/ui/init.lua index d3c9a574..9086f6cd 100644 --- a/lua/nvim-lsp-installer/ui/init.lua +++ b/lua/nvim-lsp-installer/ui/init.lua @@ -960,7 +960,7 @@ local function init(all_servers) state.prioritized_servers = _.set_of(prioritized_servers) end) - if not has_opened then + if not has_opened and settings.current.ui.check_outdated_servers_on_open then -- Only do this automatically once - when opening the window the first time vim.defer_fn(function() identify_outdated_servers(lsp_servers.get_installed_servers()) -- cgit v1.2.3-70-g09d2