profiles: cosmetic changes

This commit is contained in:
Dmitriy Pleshevskiy 2024-05-21 01:45:23 +03:00
parent 881339ef70
commit a915557ced
Signed by: pleshevskiy
GPG Key ID: 17041163DA10A9A2

View File

@ -133,10 +133,14 @@ in
}
]
) ++ lib.optionals config.plugins.snippet.luasnip.enable (
let ls = pipe1 config.plugin.luasnip.var; in [
let
ls = pipe1 config.plugin.luasnip.var;
jump = dir: (if' (ls (call "locally_jumpable" dir)) (ls (call "jump" dir)));
in
[
{ mode = "i"; lhs = ctrl "K"; rhs = lambda0 (ls (call0 "expand")); silent = true; }
{ mode = [ "i" "s" ]; lhs = ctrl "L"; rhs = lambda0 (ls (call "jump" 1)); silent = true; }
{ mode = [ "i" "s" ]; lhs = ctrl "H"; rhs = lambda0 (ls (call "jump" (- 1))); silent = true; }
{ mode = [ "i" "s" ]; lhs = ctrl "L"; rhs = lambda0 (jump 1); silent = true; }
{ mode = [ "i" "s" ]; lhs = ctrl "H"; rhs = lambda0 (jump (-1)); silent = true; }
{
mode = [ "i" "s" ];
lhs = ctrl "E";