You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vim-iced basically only supports connections to a single nREPL server.
But if you use shadow-cljs, for example, to run backend and frontend nREPL server separately in the same project, you’ll need to launch 2 vim/nvim to connect them. It’s pain.
This plugin supports multiple nREPL connections from a single vim/nvim by allowing you to store and switch between multiple nREPL sessions.
Usage
Basically, only you should do is executing IcedConnect command as before.
vim-iced can select a REPL port to connect when Clojure project and ClojureScript project(e.g. shadow-cljs) REPLs are up.
This plugin hooks the connection process, and manages multiple REPL connections.
This plugin primarily targets connecting to 2 REPLs: Clojure and ClojureScript projects.
With g:iced_multi_session#does_switch_session option, this plugin automatically switches the connecting REPL when the connecting REPL is not matched to the file extension on current buffer.
If you’d like to connect to 3 or more REPLs or switch the REPL more strictly, g:iced_multi_session#definitions option is recommended.
Commands
This plugin provides following commands, and these are added to the command palette automatically.
Command
Note
:IcedMultiSessionNew
Create a new session.
:IcedMultiSessionNext
Switch to the next session.
If the current session is the last, switch to first one.
:IcedMultiSessionList
Display all session names.
:IcedMultiSessionSwitch
Swith to the selected session.
:IcedMultiSessionRename
Rename the current session name.
Options
Option
Default
Note
g:iced_multi_session#does_switch_session
v:false
If v:true, execute :IcedMultiSessionNext when expected session is different from the current file extension.
g:iced_multi_session#name_prefix
'new'
The prefix string for new session name.
g:iced_multi_session#definitions
[]
Session definitions in current project.
This option should be defined with vim-localrc.