Vigemus / iron.nvim

Interactive Repl Over Neovim
BSD 3-Clause "New" or "Revised" License
1.01k stars 81 forks source link

Why am I not able to resize the REPL window/split? #354

Open chaudry-786 opened 11 months ago

chaudry-786 commented 11 months ago

What is this REPL window? I use this plugin "mrjones2014/smart-splits.nvim" to easily resize windows using alt-hjkl but it has no effect on the REPL. Also I use "alexghergh/nvim-tmux-navigation" to move easily between splits but again I can't move to the REPL split.

Is the REPL in a a terminal split? I have mapped the key: vim.keymap.set({ "n", "t" }, "", nvim_tmux_nav.NvimTmuxNavigateLeft) which let's me move out of REPL but doesn't move in.

gwerbin commented 10 months ago

By default, the REPL window is a normal window, and the REPL buffer is just a standard Terminal buffer (set buftype=terminal). The REPL window is created with set winfixwidth winfixheight.

Maybe those options are interacting badly with your plugins? Instead of these special plugin commands, do the standard Vim commands work? For example <c-w>l or 10<c-w>>.

You might need to provide a complete config that can help someone reproduce the problem you are encountering, because I don't have these problems with the standard Vim commands in my own setup.

raffaem commented 8 months ago

See here for how to set the winfixwidth and winfixheight options to false.