nvim: keep copilot off everywhere
Connor's call: the work laptop's commented-out copilot is the state he
wants on all four machines, so the host conditional added in 8ddbbe2 is
unnecessary machinery. Back to a plain plugin list.
This commit is contained in:
1 parent
3761cb8fc2
commit
c2f7bcca5b
1 file changed
+4
-15
+4
-15
@@ -49,11 +49,7 @@ vim.g.leader = " "
|
||||
-- PlugIns
|
||||
-- ------------------------------------------------------------------------------
|
||||
|
||||
-- Host-conditional plugins. vim.fn.hostname() rather than an env var, because
|
||||
-- nvim launched from a desktop entry does not inherit the shell's environment.
|
||||
local host = vim.fn.hostname():lower()
|
||||
|
||||
local plugins = {
|
||||
vim.pack.add({
|
||||
{ src = "https://github.com/vague2k/vague.nvim" },
|
||||
{ src = "https://github.com/mason-org/mason.nvim" },
|
||||
{ src = "https://github.com/neovim/nvim-lspconfig" },
|
||||
@@ -66,16 +62,9 @@ local plugins = {
|
||||
{ src = "https://github.com/tommcdo/vim-lion" },
|
||||
{ src = "https://github.com/andythigpen/nvim-coverage" },
|
||||
{ src = "https://github.com/nvim-treesitter/nvim-treesitter" },
|
||||
}
|
||||
|
||||
-- Copilot is off on the work laptop and on everywhere else. It was enabled on
|
||||
-- mainframe, system76 and the NAS before the refit; taking the work laptop's
|
||||
-- init.lua as canonical would otherwise have silently disabled it on all three.
|
||||
if host ~= "sctfw004" then
|
||||
table.insert(plugins, { src = "https://github.com/github/copilot.vim" })
|
||||
end
|
||||
|
||||
vim.pack.add(plugins)
|
||||
-- copilot deliberately off on every machine
|
||||
-- { src = "https://github.com/github/copilot.vim" },
|
||||
})
|
||||
|
||||
require("mason").setup()
|
||||
require("oil").setup()
|
||||
|
||||
Reference in new issue
Block a user