Added so much stuff
This commit is contained in:
parent
1b17dc6cf3
commit
71f7586a61
100 changed files with 4404 additions and 33 deletions
dotfiles/neovim/lua/my/plugins
36
dotfiles/neovim/lua/my/plugins/whichkey.lua
Normal file
36
dotfiles/neovim/lua/my/plugins/whichkey.lua
Normal file
|
@ -0,0 +1,36 @@
|
|||
local env = require("my.helpers.env")
|
||||
local M = {
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
}
|
||||
|
||||
function M.config()
|
||||
local wk = require("which-key")
|
||||
|
||||
local winblend = 0
|
||||
|
||||
if env.neovide.active() then
|
||||
winblend = 30
|
||||
end
|
||||
|
||||
wk.setup({
|
||||
window = {
|
||||
winblend = winblend,
|
||||
},
|
||||
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" },
|
||||
v = "which_key_ignore",
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
Loading…
Add table
Add a link
Reference in a new issue