-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
return { | ||
{ | ||
"aserowy/tmux.nvim", | ||
keys = { "<M-h>", "<M-j>", "<M-k>", "<M-l>", "<C-h>", "<C-j>", "<C-k>", "<C-l>" }, | ||
opts = { | ||
copy_sync = { | ||
-- enables copy sync. by default, all registers are synchronized. | ||
-- to control which registers are synced, see the `sync_*` options. | ||
enable = true, | ||
|
||
-- ignore specific tmux buffers e.g. buffer0 = true to ignore the | ||
-- first buffer or named_buffer_name = true to ignore a named tmux | ||
-- buffer with name named_buffer_name :) | ||
ignore_buffers = { empty = false }, | ||
|
||
-- TMUX >= 3.2: all yanks (and deletes) will get redirected to system | ||
-- clipboard by tmux | ||
redirect_to_clipboard = false, | ||
|
||
-- offset controls where register sync starts | ||
-- e.g. offset 2 lets registers 0 and 1 untouched | ||
register_offset = 0, | ||
|
||
-- overwrites vim.g.clipboard to redirect * and + to the system | ||
-- clipboard using tmux. If you sync your system clipboard without tmux, | ||
-- disable this option! | ||
sync_clipboard = true, | ||
|
||
-- synchronizes registers *, +, unnamed, and 0 till 9 with tmux buffers. | ||
--sync_registers = true, | ||
sync_registers = false, -- avoid lagging when sync register | ||
|
||
-- syncs deletes with tmux clipboard as well, it is adviced to | ||
-- do so. Nvim does not allow syncing registers 0 and 1 without | ||
-- overwriting the unnamed register. Thus, ddp would not be possible. | ||
sync_deletes = true, | ||
|
||
-- syncs the unnamed register with the first buffer entry from tmux. | ||
sync_unnamed = true, | ||
}, | ||
navigation = { | ||
-- cycles to opposite pane while navigating into the border | ||
cycle_navigation = true, | ||
|
||
-- enables default keybindings (C-hjkl) for normal mode | ||
enable_default_keybindings = true, | ||
|
||
-- prevents unzoom tmux when navigating beyond vim border | ||
persist_zoom = false, | ||
}, | ||
resize = { | ||
-- enables default keybindings (A-hjkl) for normal mode | ||
enable_default_keybindings = true, | ||
|
||
-- sets resize steps for x axis | ||
resize_step_x = 1, | ||
|
||
-- sets resize steps for y axis | ||
resize_step_y = 1, | ||
}, | ||
}, | ||
}, | ||
} |