diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-01-13 01:49:50 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-01-13 01:49:50 +0100 |
commit | c41f25fa0d1c882d3dd484d10666b5341dec5c92 (patch) | |
tree | 28e73c347b930daa78c14d60e8a651ec2bdb1d54 /fnl/settings/usercmds.fnl | |
parent | 8c3692f3ab6e8bbe148a21f34ad5962951462766 (diff) |
Refactor
Diffstat (limited to 'fnl/settings/usercmds.fnl')
-rw-r--r-- | fnl/settings/usercmds.fnl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fnl/settings/usercmds.fnl b/fnl/settings/usercmds.fnl index 14020af..002e1b2 100644 --- a/fnl/settings/usercmds.fnl +++ b/fnl/settings/usercmds.fnl @@ -6,9 +6,6 @@ theme (. opts :theme)] ((. telescope builtin) ((. themes theme) opts)))) -(fn create-usercmd [event cmd opts] - (vim.api.nvim_create_user_command event cmd opts)) - (local usercmds [[:OrgAgendaPrompt (lambda [] (let [orgmode (require :orgmode)] @@ -87,4 +84,4 @@ (each [_ usercmd (ipairs usercmds)] (match usercmd - [event cmd opts] (create-usercmd event cmd opts))) + [event cmd opts] (vim.api.nvim_create_user_command event cmd opts))) |