Skip to content

Commit

Permalink
refactor: move command registration
Browse files Browse the repository at this point in the history
  • Loading branch information
tris203 committed Dec 20, 2023
1 parent b88ec86 commit ec888bb
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions lua/hawtkeys/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,22 @@ function M.setup(config)
M.powerFingers = config.powerFingers or { 2, 3, 6, 7 }
M.keyboardLayout = config.keyboardLayout or "qwerty"
M.keyMapSet = vim.tbl_extend("force", _defaultSet, config.customMaps or {})
end

vim.api.nvim_create_user_command(
"Hawtkeys",
"lua require('hawtkeys.ui').show()",
{}
)
vim.api.nvim_create_user_command(
"HawtkeysAll",
"lua require('hawtkeys.ui').show_all()",
{}
)
vim.api.nvim_create_user_command(
"HawtkeysDupes",
"lua require('hawtkeys.ui').show_dupes()",
{}
)
vim.api.nvim_create_user_command(
"Hawtkeys",
"lua require('hawtkeys.ui').show()",
{}
)
vim.api.nvim_create_user_command(
"HawtkeysAll",
"lua require('hawtkeys.ui').show_all()",
{}
)
vim.api.nvim_create_user_command(
"HawtkeysDupes",
"lua require('hawtkeys.ui').show_dupes()",
{}
)
end

return M

0 comments on commit ec888bb

Please sign in to comment.