29 lines
746 B
Nix
29 lines
746 B
Nix
{...}: {
|
|
vim = {
|
|
autocomplete.nvim-cmp = {
|
|
enable = true;
|
|
mappings = {
|
|
complete = "<C-Space>";
|
|
close = "<C-e>";
|
|
scrollDocsUp = "<C-b>";
|
|
scrollDocsDown = "<C-f>";
|
|
confirm = "<CR>";
|
|
next = "<C-j>";
|
|
previous = "<C-k>";
|
|
};
|
|
};
|
|
|
|
snippets.luasnip.enable = true;
|
|
|
|
luaConfigRC.luasnip-keymaps = ''
|
|
vim.keymap.set({"i", "s"}, "<C-l>", function()
|
|
local ls = require("luasnip")
|
|
if ls.expand_or_jumpable() then ls.expand_or_jump() end
|
|
end, {silent = true})
|
|
vim.keymap.set({"i", "s"}, "<C-h>", function()
|
|
local ls = require("luasnip")
|
|
if ls.jumpable(-1) then ls.jump(-1) end
|
|
end, {silent = true})
|
|
'';
|
|
};
|
|
}
|