iron.nvim
iron.nvim copied to clipboard
Fix: Treat REPL buffer filetype as filetype for repl
Currently many commands only work if the cursor is on the repl buffer or on a code buffer with fitting filetype. This is inconvenient, because one can't call IronHide, if focus is on repl and one can't call IronFocus, if cursor is on repl etc.
This fix checks if the current buffer is a repl buffer and returns the filetype that the repl was created for.
See also https://github.com/Vigemus/iron.nvim/issues/323#issue-1626950783 for example.