fix(nvf): make blink cmp not auto show cmdline completion
This commit is contained in:
parent
43c0dba4e3
commit
09c2fc94a4
3 changed files with 7 additions and 15 deletions
|
@ -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
|
||||
|
|
|
@ -11,5 +11,6 @@
|
|||
nix.enable = true;
|
||||
rust.enable = true;
|
||||
clang.enable = true;
|
||||
lua.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
};
|
||||
};
|
||||
# lsplines moves diagnostics to virtual lines after the actual line
|
||||
lsplines.enable = true; # TODO: add a keymap to toggle this
|
||||
lsplines.enable = false; # TODO: add a keymap to toggle this
|
||||
# lspsaga provides many features:
|
||||
# - breadcrumbs: provides trace to current symbol at top
|
||||
# - callhierarchy: provides a list of the call hierarchy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue