Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.
This repository was archived by the owner on May 3, 2024. It is now read-only.

zellij setup #3

Description

@ssipos90

Hi,

I'm missing something out or is any necessary zellij config that one needs to setup for this plugin to work?

I'm coming from Navigator.nvim which I set up using <C-hjkl> for navigation.

Of all the keys only works, so something is off. This is my "normal" mode in zellij:

    normal clear-defaults=true {
        bind "Ctrl a" { SwitchToMode "Tmux"; }

        bind "Ctrl h" { MoveFocus "Left"; }
        bind "Ctrl j" { MoveFocus "Down"; }
        bind "Ctrl k" { MoveFocus "Up"; }
        bind "Ctrl l" { MoveFocus "Right"; }
    }

I disabled Navigator.nvim in lazy.nvim and it shows disabled:

return {
  'numToStr/Navigator.nvim',
  lazy = false,
  enabled = vim.env.ZELLIJ == nil,
  keys = {
    { "<C-h>", '<cmd>NavigatorLeft<cr>',     { desc = "Navigator Left", mode = { "n", "t" } } },
    { "<C-l>", '<cmd>NavigatorRight<cr>',    { desc = "Navigator Right", mode = { "n", "t" } } },
    { "<C-k>", '<cmd>NavigatorUp<cr>',       { desc = "Navigator Up", mode = { "n", "t" } } },
    { "<C-j>", '<cmd>NavigatorDown<cr>',     { desc = "Navigator Down", mode = { "n", "t" } } },
    { "<C-p>", '<cmd>NavigatorPrevious<cr>', { desc = "Navigator Previous" } },
  },
  opts = {
    disable_on_zoom = true,
  }
}

and enabled zellij.nvim:

return {
  "Lilja/zellij.nvim",
  lazy = false,
  enabled = vim.env.ZELLIJ ~= nil,
  opts = {
    debug = true,
    vimTmuxNavigatorKeybinds = true,
    whichKeyEnabled = true,
  }
}

Thanks for your work!

edit:
this is the output of :checkhealth zellij

zellij: require("zellij.health").check()

zellij.nvim report ~
- Using binary 'zellij'
- OK Zellij binary found and version matches expected version number
- OK zellij 0.37.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions