Skip to content

Missing nvim + tmux config #5

Open

Description

@aranw

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

Activity

  1. mohammedbabiker commented on Feb 21, 2024

    @mohammedbabiker

    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>" },
      },
    }
    
  2. CaptainOO7 commented on Sep 16, 2026

    @CaptainOO7

    Recommended setup

    create:

    ~/.config/nvim/lua/plugins/tmux-navigator.lua

    with:

    return {
      {
        "christoomey/vim-tmux-navigator",
        cmd = {
          "TmuxNavigateLeft",
          "TmuxNavigateDown",
          "TmuxNavigateUp",
          "TmuxNavigateRight",
          "TmuxNavigatePrevious",
          "TmuxNavigatorProcessList",
        },
        keys = {
          { "<C-h>", "<cmd><C-U>TmuxNavigateLeft<cr>", desc = "Navigate Left" },
          { "<C-j>", "<cmd><C-U>TmuxNavigateDown<cr>", desc = "Navigate Down" },
          { "<C-k>", "<cmd><C-U>TmuxNavigateUp<cr>", desc = "Navigate Up" },
          { "<C-l>", "<cmd><C-U>TmuxNavigateRight<cr>", desc = "Navigate Right" },
          { "<C-\\>", "<cmd><C-U>TmuxNavigatePrevious<cr>", desc = "Navigate Previous" },
        },
      },
    }

    This is essentially the lazy.nvim configuration provided by the plugin itself.

    Then restart Neovim, or run:

    :Lazy

    and you should see vim-tmux-navigator installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions