diff --git a/lua/plugconfig.lua b/lua/plugconfig.lua index b734756..ac05081 100644 --- a/lua/plugconfig.lua +++ b/lua/plugconfig.lua @@ -50,6 +50,9 @@ vim.g.gitblame_date_format = "%r" -- Floating terminal vim.keymap.set("n", "", ":FloatermNew --height=0.9 --width=0.9 --wintype=float --name=terminal ") +-- Key plugin +require("screenkeyconfig") + -- Set default colorscheme -- vim.cmd("colo vim-monokai-tasty") vim.cmd("colo sonokai") diff --git a/lua/plugins.lua b/lua/plugins.lua index 4479e1d..8e5763d 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -57,7 +57,7 @@ return { "dense-analysis/ale", "f-person/git-blame.nvim", "dstein64/vim-startuptime", - "tamton-aquib/keys.nvim", + "NStefan002/screenkey.nvim", -- Themes "folke/tokyonight.nvim", diff --git a/lua/screenkeyconfig.lua b/lua/screenkeyconfig.lua new file mode 100644 index 0000000..386be15 --- /dev/null +++ b/lua/screenkeyconfig.lua @@ -0,0 +1,65 @@ +require("screenkey").setup({ + win_opts = { + row = vim.o.lines - vim.o.cmdheight - 1, + col = vim.o.columns - 1, + relative = "editor", + anchor = "SE", + width = 40, + height = 3, + border = "single", + title = "Screenkey", + title_pos = "center", + style = "minimal", + focusable = false, + noautocmd = true, + }, + compress_after = 3, + clear_after = 3, + disable = { + filetypes = {}, + buftypes = {}, + events = false, + }, + show_leader = true, + group_mappings = false, + display_infront = {}, + display_behind = {}, + filter = function(keys) + return keys + end, + keys = { + [""] = "󰌒", + [""] = "󰌑", + [""] = "Esc", + [""] = "␣", + [""] = "󰌥", + [""] = "Del", + [""] = "", + [""] = "", + [""] = "", + [""] = "", + [""] = "Home", + [""] = "End", + [""] = "PgUp", + [""] = "PgDn", + [""] = "Ins", + [""] = "󱊫", + [""] = "󱊬", + [""] = "󱊭", + [""] = "󱊮", + [""] = "󱊯", + [""] = "󱊰", + [""] = "󱊱", + [""] = "󱊲", + [""] = "󱊳", + [""] = "󱊴", + [""] = "󱊵", + [""] = "󱊶", + ["CTRL"] = "Ctrl", + ["ALT"] = "Alt", + ["SUPER"] = "󰘳", + [""] = "", + }, +}) + +vim.cmd("Screenkey")