profiles: cosmetic changes
This commit is contained in:
parent
881339ef70
commit
a915557ced
1 changed files with 7 additions and 3 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue