1
Fork 0
satellite/dotfiles/neovim/lua/my/plugins/vimux.lua

28 lines
571 B
Lua
Raw Normal View History

2022-12-27 14:02:03 +01:00
local K = require("my.keymaps")
2022-03-09 19:03:04 +01:00
local M = {}
function M.setup()
2022-12-27 14:02:03 +01:00
--{{{ Register keybinds
K.nmap("<leader>vp", ":VimuxPromptCommand<CR>", "[V]imux: [p]rompt for command")
K.nmap("<leader>vc", ':VimuxRunCommand "clear"<CR>', "[V]imux: [c]lear pane")
K.nmap(
"<leader>vl",
":VimuxRunLastCommand<CR>",
"[V]imux: rerun [l]ast command"
)
--}}}
--{{{ Register which-key docs
local status, wk = pcall(require, "which-key")
if status then
wk.register({
["<leader>v"] = {
name = "vimux",
},
})
end
--}}}
2022-03-09 19:03:04 +01:00
end
return M