build: move keymaps to the end
This commit is contained in:
parent
13177e2c36
commit
bf360c7fbc
1 changed files with 4 additions and 4 deletions
|
@ -36,14 +36,14 @@ in
|
|||
(lib.flip lib.mapAttrsToList config.vim.g (k: set "vim.g.${k}"))
|
||||
# Opts
|
||||
(lib.flip lib.mapAttrsToList config.vim.opt (k: set "vim.opt.${k}"))
|
||||
# Keymaps
|
||||
(lib.flip map config.vim.keymap.set ({ mode, lhs, rhs, ... } @ vars:
|
||||
call "vim.keymap.set" [ mode lhs rhs (removeAttrs vars [ "mode" "lhs" "rhs" ]) ]
|
||||
))
|
||||
# Plugins
|
||||
(map (v: v.genConfig) (filter (v: !v.isDependency) (attrValues config.plugin)))
|
||||
# Cmd
|
||||
(lib.optional (config.vim.cmd != "") (call "vim.cmd" config.vim.cmd))
|
||||
# Keymaps
|
||||
(lib.flip map config.vim.keymap.set ({ mode, lhs, rhs, ... } @ vars:
|
||||
call "vim.keymap.set" [ mode lhs rhs (removeAttrs vars [ "mode" "lhs" "rhs" ]) ]
|
||||
))
|
||||
]));
|
||||
|
||||
plugins = lib.mapAttrsToList (k: v: v.package) config.plugin;
|
||||
|
|
Loading…
Reference in a new issue