summaryrefslogtreecommitdiff
path: root/neovim/.config/nvim/lua/config/vimux.lua
diff options
context:
space:
mode:
authorMichaël Ball <michael@Michaels-MacBook-Pro.local>2024-07-16 16:12:12 +0100
committerMichaël Ball <michael@Michaels-MacBook-Pro.local>2024-07-16 16:12:12 +0100
commit4385c252eb461a0ec9dbf9569a8f9ef7f0664289 (patch)
treede1005fbc0274eea549dc42ca5be17101b937463 /neovim/.config/nvim/lua/config/vimux.lua
Initial commit
Diffstat (limited to 'neovim/.config/nvim/lua/config/vimux.lua')
-rw-r--r--neovim/.config/nvim/lua/config/vimux.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/neovim/.config/nvim/lua/config/vimux.lua b/neovim/.config/nvim/lua/config/vimux.lua
new file mode 100644
index 0000000..16348dc
--- /dev/null
+++ b/neovim/.config/nvim/lua/config/vimux.lua
@@ -0,0 +1,15 @@
+vim.g.VimuxUseNearest = 0
+vim.gVimuxResetSequence = ""
+
+-- Prompt for a command to run
+vim.keymap.set('', '<Leader>vp', '<cmd>VimuxPromptCommand<CR>', {})
+-- Run last command executed by VimuxRunCommand
+vim.keymap.set('', '<Leader>vl', '<cmd>VimuxRunLastCommand<CR>', {})
+-- Inspect runner pane
+vim.keymap.set('', '<Leader>vi', '<cmd>VimuxInspectRunner<CR>', {})
+-- Close vim tmux runner opened by VimuxRunCommand
+vim.keymap.set('', '<Leader>vq', '<cmd>VimuxCloseRunner<CR>', {})
+-- Interrupt any command running in the runner pane
+vim.keymap.set('', '<Leader>vx', '<cmd>VimuxPromptInterruptRunner<CR>', {})
+-- Zoom the runner pane (use <bind-key> z to restore runner pane)
+vim.keymap.set('', '<Leader>vz', '<cmd>call VimuxZoomRunner()<CR>', {})