1
Fork 0
satellite/home/features/neovim/config/lua/my/plugins/whichkey.lua

35 lines
653 B
Lua
Raw Normal View History

2023-12-21 16:21:14 +01:00
local runtime = require("my.tempest")
2023-01-10 02:38:06 +01:00
local M = {
"folke/which-key.nvim",
event = "VeryLazy",
2023-12-21 16:21:14 +01:00
cond = runtime.blacklist("vscode"),
2023-01-10 02:38:06 +01:00
}
function M.config()
local wk = require("which-key")
wk.setup({
window = {
winblend = 0,
pumblend = 0,
border = "single",
2023-01-10 02:38:06 +01:00
},
layout = { align = "center" },
})
wk.register({
["<leader>"] = {
f = { name = "[F]iles" },
g = { name = "[G]o to" },
r = { name = "[R]ename / [R]eplace / [R]eload" },
l = { name = "[L]ocal" },
w = { name = "[W]orkspace" },
y = { name = "[Y]ank" },
s = { name = "[S]ettings" },
2023-01-10 02:38:06 +01:00
},
})
end
2023-12-21 16:21:14 +01:00
return M