numToStr / Navigator.nvim

:sparkles: Smoothly navigate between neovim and terminal multiplexer(s) :sparkles:
MIT License
398 stars 22 forks source link

Windows not working #23

Closed jeeeem closed 1 year ago

jeeeem commented 1 year ago

Need some help in configuring in Windows. Im not sure why its not working when I'm binding it to a keymap. Its working when I execute a command like Navigateleft but when using the keymap, its not doing anything.

I tried the example config but still not working. Any idea ? or is it just not working with windows OS

numToStr commented 1 year ago

Neovim keybindings might be conflicting with your terminal keybindings.

jeeeem commented 1 year ago

Already deleted the mappings still not working. for more context Im using lunarvim

local keymap_del = vim.keymap.del

keymap_del({"n","t"}, "<C-h>")
keymap_del({"n","t"}, "<C-l>")
keymap_del({"n","t"}, "<C-j>")
keymap_del({"n","t"}, "<C-k>")

vim.keymap.set({'n', 't'}, '<C-h>', '<CMD>NavigatorLeft<CR>')
vim.keymap.set({'n', 't'}, '<C-l>', '<CMD>NavigatorRight<CR>')
vim.keymap.set({'n', 't'}, '<C-k>', '<CMD>NavigatorUp<CR>')
vim.keymap.set({'n', 't'}, '<C-j>', '<CMD>NavigatorDown<CR>')

Additional issue: It kinda works but it is slow, its not working when I use the CTRL for both config, so I just use CTRL|ALT in wezterm. When I navigate from neovim to wezterm pane, this happened.

image

The neovim session suspends when I type ctrl-c , i use it for escape alternative when going normal mode as I am used using the keybind.

Not sure what I miss, maybe this is not working for windows OS users although I have a workaround (use separate keybindings) but I wanna try if it is possible to navigate more smoothly with this plugin.

numToStr commented 1 year ago

I don't think there is any fundamental issue with the plugin itself and I can't help much as I don't use wezterm or lunarvim myself. Though there is already an upstream issue with WezTerm which you can look.

numToStr commented 1 year ago

Closing this for now as this is not related to the plugin.