From 82e64e198f4ae4ff13c78074cf80e2e0bda21187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Sun, 18 Aug 2024 13:06:12 +0200 Subject: [PATCH] feat: remove cmp-spell and copilot nvim plugins --- modules/programs/nvim/plugins/coding.nix | 35 +++++++++---------- .../programs/nvim/plugins/lua/nvim-cmp.lua | 4 +-- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/modules/programs/nvim/plugins/coding.nix b/modules/programs/nvim/plugins/coding.nix index 3dd89b3..0772fe2 100644 --- a/modules/programs/nvim/plugins/coding.nix +++ b/modules/programs/nvim/plugins/coding.nix @@ -38,7 +38,6 @@ in { plugin = pkgs.vimPlugins.cmp-cmdline; } { plugin = pkgs.vimPlugins.cmp-nvim-lsp-signature-help; } { plugin = pkgs.vimPlugins.cmp-nvim-lsp; } - { plugin = pkgs.vimPlugins.cmp-spell; } { plugin = pkgs.vimUtils.buildVimPlugin { pname = "cmp-vimtex"; @@ -47,23 +46,23 @@ in }; } { plugin = pkgs.vimPlugins.cmp_luasnip; } - { - plugin = pkgs.vimPlugins.copilot-cmp; - opts = { }; - dependencies = [ - { - plugin = pkgs.vimPlugins.copilot-lua; - opts = { - suggestion = { enabled = false; }; - panel = { enabled = false; }; - }; - conf = /* lua */ '' - require("copilot").setup(opts) - vim.cmd("Copilot disable") - ''; - } - ]; - } + # { + # plugin = pkgs.vimPlugins.copilot-cmp; + # opts = { }; + # dependencies = [ + # { + # plugin = pkgs.vimPlugins.copilot-lua; + # opts = { + # suggestion = { enabled = false; }; + # panel = { enabled = false; }; + # }; + # conf = /* lua */ '' + # require("copilot").setup(opts) + # vim.cmd("Copilot disable") + # ''; + # } + # ]; + # } { plugin = pkgs.vimPlugins.friendly-snippets; } { plugin = pkgs.vimPlugins.lspkind-nvim; } { diff --git a/modules/programs/nvim/plugins/lua/nvim-cmp.lua b/modules/programs/nvim/plugins/lua/nvim-cmp.lua index 544381b..ee505ec 100644 --- a/modules/programs/nvim/plugins/lua/nvim-cmp.lua +++ b/modules/programs/nvim/plugins/lua/nvim-cmp.lua @@ -9,7 +9,7 @@ cmp.setup({ maxwidth = 50, -- prevent the popup from showing more than provided characters ellipsis_char = "...", -- when popup menu exceed maxwidth, the truncated part would show ellipsis_char instead symbol_map = { - Copilot = "", + -- Copilot = "", }, }), }, @@ -67,7 +67,7 @@ cmp.setup({ { priority = 1, name = "buffer" }, { priority = 1, name = "spell" }, { priority = 2, name = "nvim_lsp" }, - { priority = 3, name = "copilot" }, + -- { priority = 3, name = "copilot" }, { priority = 3, name = "nvim_lsp_signature_help" }, { priority = 4, name = "luasnip" }, { priority = 4, name = "vimtex" },