From 652b711ac8001632d834eefe0599904398fa3933 Mon Sep 17 00:00:00 2001 From: Fey Naomi Schrewe Date: Tue, 1 Oct 2024 08:50:15 +0200 Subject: [PATCH] feat: add copilot for work --- lua/plugins.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lua/plugins.lua b/lua/plugins.lua index 249353a..28ff011 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -16,7 +16,16 @@ local function hasversion(major, minor, patch) return version.patch <= patch end +local function is_work() + return vim.fn.hostname() == "SCHREWE" +end + return { + { + "github/copilot.vim", + enabled = is_work(), + event = "VeryLazy", + }, { "rose-pine/neovim", name = "rose-pine",