From 2baee362d224bc3ec09f69429fe98e4e6003a9f2 Mon Sep 17 00:00:00 2001 From: pmihaly Date: Wed, 26 Jun 2024 17:25:30 +0200 Subject: [PATCH] fix lsp cmp --- modules/home-manager/nvim/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/nvim/default.nix b/modules/home-manager/nvim/default.nix index cf0a24c5..b97fa070 100644 --- a/modules/home-manager/nvim/default.nix +++ b/modules/home-manager/nvim/default.nix @@ -97,7 +97,11 @@ in }; }; which-key.enable = true; - copilot-vim.enable = true; + copilot-lua = { + enable = true; + panel.enabled = false; + suggestion.enabled = false; + }; floaterm = { enable = true; width = 150; @@ -112,6 +116,7 @@ in keymapsSilent = true; }; + copilot-cmp.enable = true; cmp = { enable = true; settings = { @@ -124,6 +129,12 @@ in "" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})"; "" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})"; }; + sources = [ + { name = "copilot"; } + { name = "nvim_lsp"; } + { name = "nvim_lsp_signature_help"; } + { name = "buffer"; } + ]; }; };