adjust bindings

This commit is contained in:
2025-03-16 13:20:39 -05:00
parent a9d1ee262f
commit 6bbd10bd24

View File

@@ -51,15 +51,16 @@
sources = [
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "buffer"; }
# { name = "buffer"; }
{ name = "luasnip"; }
{ name = "cmdline"; }
# { name = "cmdline"; }
];
mapping = {
"[ '<C-u>' ]" = "cmp.mapping.scroll_docs(-4)";
"[ '<C-d>' ]" = "cmp.mapping.scroll_docs(4)";
# """""""""""""""""""""""""""""""""""""""""""""""""""
"[ '<C-n>' ]" = "cmp.mapping.select_next_item()";
"[ '<C-p>' ]" = "cmp.mapping.select_prev_item()";
"[ '<C-y>' ]" = "cmp.mapping.complete()";
"[ '<C-e>' ]" = "cmp.mapping.abort()";
};
snippet.expand = ''
@@ -169,6 +170,23 @@
action = ":m '<-2<CR>gv=gv";
}
{
mode = "n";
key = "<leader>y";
action = "\"+y";
}
{
mode = "v";
key = "<leader>y";
action = "\"+y";
}
{
mode = "n";
key = "<leader>s";
action = ":%s/\\<<C-r><C-w>\\>/<C-r><C-w>/gI<Left><Left><Left>";
}
];
extraConfigLua = ''