fix(nvf): make blink cmp not auto show cmdline completion

This commit is contained in:
Mohammad Rafiq 2025-03-16 20:03:16 +08:00
parent 43c0dba4e3
commit 09c2fc94a4
3 changed files with 7 additions and 15 deletions

View file

@ -4,20 +4,9 @@
nvim-autopairs.enable = true;
};
autocomplete = {
enableSharedCmpSources = true;
blink-cmp = {
enable = true;
friendly-snippets.enable = true;
mappings = {
# default mappings:
# - Close [blink.cmp]:<C-e>
# - Complete [blink.cmp]:<C-Space>
# - Confirm [blink.cmp]:<CR>
# - Next item [blink.cmp]:<Tab>
# - Previous item [blink.cmp]:<S-Tab>
# - Scroll docs down [blink.cmp]:<C-f>
# - Scroll docs up [blink.cmp]:<C-d>
};
setupOpts = {
# Disable completion for markdown
enabled =
@ -32,14 +21,16 @@
and vim.b.completion ~= false
end
'';
cmdline.sources = null; # use default source list
sources.providers.cmdline.module = "blink.cmp.sources.cmdline";
cmdline = {
enabled = true;
sources = null;
completion.menu.auto_show = false;
};
# menu.auto_show = false;
completion.documentation.auto_show_delay_ms = 0;
signature.enabled = true;
};
};
nvim-cmp = {};
};
# enable code snippets using luasnip
# loads from vscode by default using friendly-snippets