add tmux plugin

This commit is contained in:
Gustavo Silva 2023-05-25 15:58:01 +02:00 committed by Gustavo Silva (es00679121_prosegur)
parent 9225d6e39b
commit 3e941e88b0
3 changed files with 15 additions and 2 deletions

View File

@ -12,7 +12,7 @@ go install github.com/go-delve/delve/cmd/dlv@latest # for go debug
Substitute Mode
```shell
:V,s/pattern/
:V:s/pattern/
```
Check for key combination

View File

@ -1,3 +1,6 @@
return {
"github/copilot.vim"
"github/copilot.vim",
config = function()
vim.api.nvim_set_keymap("i", "<C-J>", 'copilot#Accept("<CR>")', { silent = true, expr = true })
end
}

View File

@ -0,0 +1,10 @@
return {
'christoomey/vim-tmux-navigator',
lazy = false,
config = function()
vim.keymap.set("n", "<c-h>", "<CMD>TmuxNavigateLeft<CR>", { desc = "tmux window left"})
vim.keymap.set("n", "<c-l>", "<CMD>TmuxNavigateRight<CR>", { desc = "tmux window right"})
vim.keymap.set("n", "<c-j>", "<CMD>TmuxNavigateDown<CR>", { desc = "tmux window down"})
vim.keymap.set("n", "<c-k>", "<CMD>TmuxNavigateUp<CR>", { desc = "tmux window up"})
end,
}