mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 23:27:34 +00:00
Add some local overridable config variables
This allows me to only install and use SG and Copilot at work
This commit is contained in:
parent
66c11ff5a0
commit
6bb2fa1de6
@ -51,3 +51,6 @@ end
|
|||||||
local has = vim.fn.has
|
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_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")
|
g.is_gui = vim.fn.exists("g:neovide")
|
||||||
|
|
||||||
|
-- Require some local values
|
||||||
|
utils.require_with_local("variables")
|
||||||
|
@ -616,6 +616,7 @@ use({
|
|||||||
"SourcegraphLogin",
|
"SourcegraphLogin",
|
||||||
"SourcegraphSearch",
|
"SourcegraphSearch",
|
||||||
},
|
},
|
||||||
|
disable = not vim.g.install_sourcegraph,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Auto sync after bootstrapping on a fresh box
|
-- Auto sync after bootstrapping on a fresh box
|
||||||
|
1
neovim/lua/variables.lua
Normal file
1
neovim/lua/variables.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
vim.g.install_sourcegraph = false
|
Loading…
Reference in New Issue
Block a user