From 6bb2fa1de6ad1e45445e3d8f4ef4bdd77bc9b776 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 29 May 2024 12:04:26 -0700 Subject: [PATCH] Add some local overridable config variables This allows me to only install and use SG and Copilot at work --- neovim/lua/_settings.lua | 3 +++ neovim/lua/plugins.lua | 1 + neovim/lua/variables.lua | 1 + 3 files changed, 5 insertions(+) create mode 100644 neovim/lua/variables.lua 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