Add some local overridable config variables

This allows me to only install and use SG and Copilot at work
This commit is contained in:
ViViDboarder 2024-05-29 12:04:26 -07:00
parent 66c11ff5a0
commit 6bb2fa1de6
3 changed files with 5 additions and 0 deletions

View File

@ -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")

View File

@ -616,6 +616,7 @@ use({
"SourcegraphLogin",
"SourcegraphSearch",
},
disable = not vim.g.install_sourcegraph,
})
-- Auto sync after bootstrapping on a fresh box

1
neovim/lua/variables.lua Normal file
View File

@ -0,0 +1 @@
vim.g.install_sourcegraph = false