Skip to content

Commit 5942793

Browse files
practicalli: showkeys plugin and key binding
Add the nvzone/showkeys plugin and key binding to toggle the showkeys window Resolve: #30
1 parent 6597f64 commit 5942793

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Unreleased
22

3+
## Added
4+
- practicalli: showkeys plugin and key binding (#30)
5+
36
# 2025-03-12
47
## Added
58
- clojure: parinfer group and toggle key map

lua/plugins/user-practicalli.lua

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@ return {
6969
-- highlight_bg = "#800080", -- or 'purple'
7070
},
7171
},
72+
{ -- Show key presses in Neovim window
73+
"nvzone/showkeys",
74+
lazy = false,
75+
cmd = "ShowkeysToggle",
76+
opts = {
77+
excluded_modes = { "i", "t" }, -- skip insert and terminal
78+
position = "bottom-center",
79+
show_count = true,
80+
maxkeys = 4,
81+
timeout = 4,
82+
},
83+
},
7284
-- ------------------------------------------
7385

7486
-- ------------------------------------------
@@ -281,6 +293,9 @@ return {
281293
["<Leader>ghgr"] = { "<cmd>GistCreate<cr>", desc = "Gist Region" },
282294
["<Leader>ghgg"] = { "<cmd>GistCreateFromFile<cr>", desc = "Gist File" },
283295
["<Leader>ghgl"] = { "<cmd>GistsList<cr>", desc = "List Gists" },
296+
297+
-- Showkeys plugin (visualise key presses in Neovim window)
298+
["<Leader>uk"] = { "<cmd>ShowkeysToggle<cr>", desc = "Toggle Showkeys" },
284299
},
285300
t = {
286301
-- terminal mode key bindings

0 commit comments

Comments
 (0)