Started rewriting my neovim config
This commit is contained in:
parent
686bdd12c4
commit
47d704ad01
17 changed files with 181 additions and 122 deletions
dotfiles/neovim/lua/my/plugins
|
@ -1,11 +1,27 @@
|
|||
local arpeggio = require("my.plugins.arpeggio")
|
||||
|
||||
local K = require("my.keymaps")
|
||||
local M = {}
|
||||
|
||||
function M.setup()
|
||||
arpeggio.chordSilent("n", "vp", ":VimuxPromptCommand<CR>")
|
||||
arpeggio.chordSilent("n", "vc", ":VimuxRunCommand \"clear\"<CR>")
|
||||
arpeggio.chordSilent("n", "vl", ":VimuxRunLastCommand<CR>")
|
||||
--{{{ 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
|
||||
--}}}
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue