--help
This commit is contained in:
+25
-4
@@ -86,8 +86,8 @@ in
|
|||||||
scrolloff = 8; # keep 8 lines of context around the cursor
|
scrolloff = 8; # keep 8 lines of context around the cursor
|
||||||
|
|
||||||
expandtab = true; # spaces, not tabs
|
expandtab = true; # spaces, not tabs
|
||||||
shiftwidth = 2;
|
shiftwidth = 4;
|
||||||
tabstop = 2;
|
tabstop = 4;
|
||||||
smartindent = true;
|
smartindent = true;
|
||||||
|
|
||||||
ignorecase = true; # case-insensitive search…
|
ignorecase = true; # case-insensitive search…
|
||||||
@@ -162,10 +162,31 @@ in
|
|||||||
blink-cmp = {
|
blink-cmp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
keymap.preset = "default"; # C-space open, C-y confirm, C-n/C-p move
|
# "enter" preset: <CR> accepts, Up/Down and C-n/C-p move, Tab is
|
||||||
|
# left to snippet jumping. Custom keys below merge over the preset.
|
||||||
|
keymap = {
|
||||||
|
preset = "enter";
|
||||||
|
# Vim's own ins-completion confirm key, kept alongside <CR>.
|
||||||
|
"<C-y>" = [ "select_and_accept" "fallback" ];
|
||||||
|
# Dismiss the menu and undo the auto_insert preview, staying in
|
||||||
|
# insert mode. `cancel` rather than the preset's `hide`, which
|
||||||
|
# would leave the previewed text in the buffer without the
|
||||||
|
# additionalTextEdits (imports) and snippet expansion that a real
|
||||||
|
# accept applies — a degraded accept nobody wants. This also
|
||||||
|
# matches builtin ins-completion, where C-e restores the typed
|
||||||
|
# text. With no menu open both keys fall back to their native
|
||||||
|
# meaning (Esc leaves insert mode).
|
||||||
|
"<C-e>" = [ "cancel" "fallback" ];
|
||||||
|
"<Esc>" = [ "cancel" "fallback" ];
|
||||||
|
};
|
||||||
appearance.nerd_font_variant = "mono";
|
appearance.nerd_font_variant = "mono";
|
||||||
sources.default = [ "lsp" "path" "snippets" "buffer" ];
|
sources.default = [ "lsp" "path" "snippets" "buffer" ];
|
||||||
completion.documentation.auto_show = true;
|
completion = {
|
||||||
|
documentation.auto_show = true;
|
||||||
|
# No item is selected until one is picked with Down/C-n, so <CR>
|
||||||
|
# inserts a newline unless a completion was deliberately chosen.
|
||||||
|
list.selection.preselect = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user