Skip to content

Commit

Permalink
fix lsp cmp
Browse files Browse the repository at this point in the history
  • Loading branch information
pmihaly committed Jun 27, 2024
1 parent cd00f09 commit 2baee36
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion modules/home-manager/nvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -112,6 +116,7 @@ in
keymapsSilent = true;
};

copilot-cmp.enable = true;
cmp = {
enable = true;
settings = {
Expand All @@ -124,6 +129,12 @@ in
"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
};
sources = [
{ name = "copilot"; }
{ name = "nvim_lsp"; }
{ name = "nvim_lsp_signature_help"; }
{ name = "buffer"; }
];
};
};

Expand Down

0 comments on commit 2baee36

Please sign in to comment.