From 300cd3b5673c01089d1487b5c67a80363810930b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Sat, 11 Oct 2025 20:39:27 +0200 Subject: [PATCH] feat: add github/copilot.vim --- lua/plugins/copilot.lua | 22 ++++++++++++++++++++++ mini-deps-snap | 1 + 2 files changed, 23 insertions(+) create mode 100644 lua/plugins/copilot.lua diff --git a/lua/plugins/copilot.lua b/lua/plugins/copilot.lua new file mode 100644 index 0000000..c9b40b5 --- /dev/null +++ b/lua/plugins/copilot.lua @@ -0,0 +1,22 @@ +local now_if_args = vim.fn.argc(-1) > 0 and MiniDeps.now or MiniDeps.later + +now_if_args(function() + MiniDeps.add("github/copilot.vim") + + vim.g.copilot_filetypes = { + -- disable all and only allow specific filetyps + ["*"] = false, + -- + c = true, + cpp = true, + dockerfile = true, + go = true, + javascript = true, + lua = true, + nix = true, + python = true, + rust = true, + sh = true, + typescript = true, + } +end) diff --git a/mini-deps-snap b/mini-deps-snap index 1fd3f79..79360f8 100644 --- a/mini-deps-snap +++ b/mini-deps-snap @@ -1,4 +1,5 @@ return { + ["copilot.vim"] = "da369d90cfd6c396b1d0ec259836a1c7222fb2ea", ["fzf-lua"] = "c0c0926eee09f2e7868e5b72cb66decc0cb13aca", ["git-blame.nvim"] = "9874ec1ec8bc53beb33b7cd82c092b85271a578b", ["gitlinker.nvim"] = "cc59f732f3d043b626c8702cb725c82e54d35c25",