dreamsofcode-io / tmux

490 stars 90 forks source link

Missing nvim + tmux config #5

Open aranw opened 7 months ago

aranw commented 7 months ago

In your video https://www.youtube.com/watch?v=DzNmUNvnB04&t=595s you add some custom configuration to make tmux + neovim work better together but I have been unable to find an example of this change in a Git repo and I think it would be good to add this configuration somewhere so that viewers don't have to try retype all the config straight from the video

mohammedbabiker commented 6 months ago

If you are using lazy.vim add this to plugin configuration

return {
  "christoomey/vim-tmux-navigator",
  lazy = false,
  keys = {
    { "<c-h>", "<cmd> TmuxNavigateLeft<cr>" },
    { "<c-l>", "<cmd> TmuxNavigateRight<cr>" },
    { "<c-j>", "<cmd> TmuxNavigateDown<cr>" },
    { "<c-k>", "<cmd> TmuxNavigateUp<cr>" },
  },
}