From c2f7bcca5b3d392725406843b8aa3224abddfb82 Mon Sep 17 00:00:00 2001 From: Connor Johnstone Date: Mon, 14 Sep 2026 15:35:38 -0400 Subject: [PATCH] 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. --- common/nvim/init.lua | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/common/nvim/init.lua b/common/nvim/init.lua index 815ceb6..aee2ca4 100755 --- a/common/nvim/init.lua +++ b/common/nvim/init.lua @@ -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()