diff --git a/neovim/lua/_settings.lua b/neovim/lua/_settings.lua index 1f13acc..a192ae4 100644 --- a/neovim/lua/_settings.lua +++ b/neovim/lua/_settings.lua @@ -51,3 +51,6 @@ end local has = vim.fn.has g.is_mac = (has("mac") or has("macunix") or has("gui_macvim") or vim.fn.system("uname"):find("^darwin") ~= nil) g.is_gui = vim.fn.exists("g:neovide") + +-- Require some local values +utils.require_with_local("variables") diff --git a/neovim/lua/plugins.lua b/neovim/lua/plugins.lua index a15d600..c0fd498 100644 --- a/neovim/lua/plugins.lua +++ b/neovim/lua/plugins.lua @@ -616,6 +616,7 @@ use({ "SourcegraphLogin", "SourcegraphSearch", }, + disable = not vim.g.install_sourcegraph, }) -- Auto sync after bootstrapping on a fresh box diff --git a/neovim/lua/variables.lua b/neovim/lua/variables.lua new file mode 100644 index 0000000..55aa7b5 --- /dev/null +++ b/neovim/lua/variables.lua @@ -0,0 +1 @@ +vim.g.install_sourcegraph = false