From 4adeabe1b8be8f5e91c17491c3e1dc85d828321e Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Wed, 18 Sep 2024 21:55:56 +0200 Subject: [PATCH] chore(copilot): remove copilot --- nix/neovim-overlay.nix | 4 ++-- nvim/plugin/completion.lua | 2 +- nvim/plugin/{copilot.lua => copilot.lua.bac} | 0 nvim/plugin/plugins.lua | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename nvim/plugin/{copilot.lua => copilot.lua.bac} (100%) diff --git a/nix/neovim-overlay.nix b/nix/neovim-overlay.nix index b174054..d4abf93 100644 --- a/nix/neovim-overlay.nix +++ b/nix/neovim-overlay.nix @@ -44,8 +44,8 @@ with final.pkgs.lib; let cmp-nvim-lua # neovim lua API as completion source | https://github.com/hrsh7th/cmp-nvim-lua/ cmp-cmdline # cmp command line suggestions cmp-cmdline-history # cmp command line history suggestions - copilot-lua # Github Copilot https://github.com/zbirenbaum/copilot.lua/ - copilot-cmp # Add Copilot as a cmp source # https://github.com/zbirenbaum/copilot-cmp/ + # copilot-lua # Github Copilot https://github.com/zbirenbaum/copilot.lua/ + # copilot-cmp # Add Copilot as a cmp source # https://github.com/zbirenbaum/copilot-cmp/ # nvim-lspconfig # ^ nvim-cmp extensions diff --git a/nvim/plugin/completion.lua b/nvim/plugin/completion.lua index 35abc58..affb06b 100644 --- a/nvim/plugin/completion.lua +++ b/nvim/plugin/completion.lua @@ -103,7 +103,7 @@ cmp.setup { }, sources = cmp.config.sources { -- The insertion order influences the priority of the sources - { name = "copilot", group_index = 2 }, + -- { name = "copilot", group_index = 2 }, { name = 'nvim_lsp', keyword_length = 3 }, { name = 'nvim_lsp_signature_help', keyword_length = 3 }, { name = 'buffer' }, diff --git a/nvim/plugin/copilot.lua b/nvim/plugin/copilot.lua.bac similarity index 100% rename from nvim/plugin/copilot.lua rename to nvim/plugin/copilot.lua.bac diff --git a/nvim/plugin/plugins.lua b/nvim/plugin/plugins.lua index 752f52c..d1943b9 100644 --- a/nvim/plugin/plugins.lua +++ b/nvim/plugin/plugins.lua @@ -7,7 +7,7 @@ vim.g.did_load_plugins_plugin = true -- even with default configs require("dapui").setup() -require("copilot_cmp").setup() +-- require("copilot_cmp").setup() require('nvim-surround').setup() require('which-key').setup() require('Comment').setup()