feat: remove cmp-spell and copilot nvim plugins

This commit is contained in:
Moritz Böhme 2024-08-18 13:06:12 +02:00
parent 928f8b77fa
commit 82e64e198f
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
2 changed files with 19 additions and 20 deletions

View file

@ -38,7 +38,6 @@ in
{ plugin = pkgs.vimPlugins.cmp-cmdline; } { plugin = pkgs.vimPlugins.cmp-cmdline; }
{ plugin = pkgs.vimPlugins.cmp-nvim-lsp-signature-help; } { plugin = pkgs.vimPlugins.cmp-nvim-lsp-signature-help; }
{ plugin = pkgs.vimPlugins.cmp-nvim-lsp; } { plugin = pkgs.vimPlugins.cmp-nvim-lsp; }
{ plugin = pkgs.vimPlugins.cmp-spell; }
{ {
plugin = pkgs.vimUtils.buildVimPlugin { plugin = pkgs.vimUtils.buildVimPlugin {
pname = "cmp-vimtex"; pname = "cmp-vimtex";
@ -47,23 +46,23 @@ in
}; };
} }
{ plugin = pkgs.vimPlugins.cmp_luasnip; } { plugin = pkgs.vimPlugins.cmp_luasnip; }
{ # {
plugin = pkgs.vimPlugins.copilot-cmp; # plugin = pkgs.vimPlugins.copilot-cmp;
opts = { }; # opts = { };
dependencies = [ # dependencies = [
{ # {
plugin = pkgs.vimPlugins.copilot-lua; # plugin = pkgs.vimPlugins.copilot-lua;
opts = { # opts = {
suggestion = { enabled = false; }; # suggestion = { enabled = false; };
panel = { enabled = false; }; # panel = { enabled = false; };
}; # };
conf = /* lua */ '' # conf = /* lua */ ''
require("copilot").setup(opts) # require("copilot").setup(opts)
vim.cmd("Copilot disable") # vim.cmd("Copilot disable")
''; # '';
} # }
]; # ];
} # }
{ plugin = pkgs.vimPlugins.friendly-snippets; } { plugin = pkgs.vimPlugins.friendly-snippets; }
{ plugin = pkgs.vimPlugins.lspkind-nvim; } { plugin = pkgs.vimPlugins.lspkind-nvim; }
{ {

View file

@ -9,7 +9,7 @@ cmp.setup({
maxwidth = 50, -- prevent the popup from showing more than provided characters 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 ellipsis_char = "...", -- when popup menu exceed maxwidth, the truncated part would show ellipsis_char instead
symbol_map = { symbol_map = {
Copilot = "", -- Copilot = "",
}, },
}), }),
}, },
@ -67,7 +67,7 @@ cmp.setup({
{ priority = 1, name = "buffer" }, { priority = 1, name = "buffer" },
{ priority = 1, name = "spell" }, { priority = 1, name = "spell" },
{ priority = 2, name = "nvim_lsp" }, { priority = 2, name = "nvim_lsp" },
{ priority = 3, name = "copilot" }, -- { priority = 3, name = "copilot" },
{ priority = 3, name = "nvim_lsp_signature_help" }, { priority = 3, name = "nvim_lsp_signature_help" },
{ priority = 4, name = "luasnip" }, { priority = 4, name = "luasnip" },
{ priority = 4, name = "vimtex" }, { priority = 4, name = "vimtex" },