Files
dotfiles/vim/.vim/lua/plugins/whichkey.lua
Christian Nieves d632924ca7 Open *.srcjar as zip
2024-08-21 16:11:25 +00:00

34 lines
805 B
Lua

return {
"folke/which-key.nvim",
event = "VeryLazy",
init = function()
vim.o.timeout = true
vim.o.timeoutlen = 300
end,
config = function()
require("which-key").setup({})
local wk = require("which-key")
wk.register({
["%%"] = { '<C-R>=fnameescape(expand("%:p:h")."/")<CR>', "Current File Directory" },
["%."] = { "<C-R>%", "Current File" },
}, { mode = "c" })
--
-- wk.register({
-- ["jk"] = { "<esc>" },
-- ["J"] = { ":tabprevious<CR>" },
-- ["K"] = { ":tabnext<CR>" },
-- ["vv"] = { "<C-W>v" },
-- ["ss"] = { "<C-W>s" },
-- ["<space><space>"] = { ":w<CR>" },
-- })
--
-- wk.register({
-- t = {
-- name = "+tab",
-- t = { ":tabedit<Space>" },
-- d = { ":tabclose<CR>" },
-- },
-- })
end,
}