Skip to content

Commit

Permalink
module/keymaps: no need to set options = {}
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Oct 16, 2023
1 parent 69b3a13 commit a9698ea
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/keymaps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,13 @@ in {
(keyMapping)
mode
key
options
;

action =
if keyMapping.lua
then helpers.mkRaw keyMapping.action
else keyMapping.action;

options =
if keyMapping.options == {}
then helpers.emptyTable
else keyMapping.options;
};
in
map normalizeMapping
Expand Down

0 comments on commit a9698ea

Please sign in to comment.