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;
|
nvim-autopairs.enable = true;
|
||||||
};
|
};
|
||||||
autocomplete = {
|
autocomplete = {
|
||||||
enableSharedCmpSources = true;
|
|
||||||
blink-cmp = {
|
blink-cmp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
friendly-snippets.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 = {
|
setupOpts = {
|
||||||
# Disable completion for markdown
|
# Disable completion for markdown
|
||||||
enabled =
|
enabled =
|
||||||
|
@ -32,14 +21,16 @@
|
||||||
and vim.b.completion ~= false
|
and vim.b.completion ~= false
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
cmdline.sources = null; # use default source list
|
cmdline = {
|
||||||
sources.providers.cmdline.module = "blink.cmp.sources.cmdline";
|
enabled = true;
|
||||||
|
sources = null;
|
||||||
|
completion.menu.auto_show = false;
|
||||||
|
};
|
||||||
# menu.auto_show = false;
|
# menu.auto_show = false;
|
||||||
completion.documentation.auto_show_delay_ms = 0;
|
completion.documentation.auto_show_delay_ms = 0;
|
||||||
signature.enabled = true;
|
signature.enabled = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nvim-cmp = {};
|
|
||||||
};
|
};
|
||||||
# enable code snippets using luasnip
|
# enable code snippets using luasnip
|
||||||
# loads from vscode by default using friendly-snippets
|
# loads from vscode by default using friendly-snippets
|
||||||
|
|
|
@ -11,5 +11,6 @@
|
||||||
nix.enable = true;
|
nix.enable = true;
|
||||||
rust.enable = true;
|
rust.enable = true;
|
||||||
clang.enable = true;
|
clang.enable = true;
|
||||||
|
lua.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# lsplines moves diagnostics to virtual lines after the actual line
|
# 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:
|
# lspsaga provides many features:
|
||||||
# - breadcrumbs: provides trace to current symbol at top
|
# - breadcrumbs: provides trace to current symbol at top
|
||||||
# - callhierarchy: provides a list of the call hierarchy
|
# - callhierarchy: provides a list of the call hierarchy
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue