Skip to content

Commit

Permalink
Update lua/hawtkeys/init.lua
Browse files Browse the repository at this point in the history
Co-authored-by: Will Hopkins <willothyh@gmail.com>
  • Loading branch information
tris203 and willothy authored Dec 30, 2023
1 parent eb98828 commit b6bd79c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/hawtkeys/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ function M.setup(config)
})

vim.api.nvim_create_user_command("Hawtkeys", function(args)
if args.fargs[#args.fargs]:lower() == "all" then
local cmd = args.fargs[1] and args.fargs[1]:gsub("^%s+", ""):gsub("%s$", ""):lower()
if cmd == "all" then
require("hawtkeys.ui").show_all()
elseif args.fargs[#args.fargs]:lower() == "dupes" then
elseif cmd == "dupes" then
require("hawtkeys.ui").show_dupes()
else
require("hawtkeys.ui").show()
Expand Down

0 comments on commit b6bd79c

Please sign in to comment.