Skip to content

Commit

Permalink
disable cmp autoselect
Browse files Browse the repository at this point in the history
  • Loading branch information
siph committed Dec 1, 2023
1 parent 91078f2 commit c297b0e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/lsp/nvim-cmp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@
plugins = {
nvim-cmp = {
enable = true;

sources = [
{name = "path";}
{name = "nvim_lsp";}
{name = "luasnip";}
{name = "crates";}
{name = "buffer";}
];

# It's annoying to have to `shift+tab` up to what I want to select, these
# settings stop `cmp` from starting in the middle of the list.
completion.completeopt = "noselect";
preselect = "None";

mapping = {
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
"<C-f>" = "cmp.mapping.scroll_docs(4)";
Expand All @@ -24,6 +31,7 @@
modes = ["i" "s"];
};
};

snippet.expand = "luasnip";
};
};
Expand Down

0 comments on commit c297b0e

Please sign in to comment.