iron.nvim icon indicating copy to clipboard operation
iron.nvim copied to clipboard

Fix: Treat REPL buffer filetype as filetype for repl

Open frere-jacques opened this issue 6 months ago • 8 comments

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.

frere-jacques avatar Aug 19 '24 18:08 frere-jacques