Fork me on GitHub
#conjure
<
2020-07-29
>
penryu01:07:25

Is :Clj<CR> supposed to leave me stuck in insert mode in the terminal tab until I ^C and kill the process? Or is my terminal session and/or dispatch config borken?

Olical07:07:37

That'll probably be neovim's terminal mode? https://neovim.io/doc/user/nvim_terminal_emulator.html you need to use <C-\><C-n> to get out and back to normal mode. I have jk mapped to that since I use jk as my escape, you might want something like :tnoremap <Esc> <C-\><C-n> that's in that help text

penryu08:07:03

Okay. So far I've found :Clj! is equivalent, then a quick <Leader>cf and I'm connected.

penryu08:07:21

Just want to make sure I don't have some borken config

penryu08:07:00

Though I'm totally fine with starting the repl outside nvim and connecting automatically via .nrepl-port

Olical08:07:28

I still tend to start outside, I like to restart nvim regularly / because I have a habit of hitting :w :qa on a regular basis after I'm done with what I wanted to do

penryu08:07:50

Hah! Same.

penryu08:07:20

vim is so quit/launch friendly relative to emacs

Olical08:07:24

I think jack-in is good for people that REALLY want it to be a little more emacs like (not me) or want something one shot for a quick eval test. I want to add babashka support to jack-in too, so you could run that to do a quick test of some syntax

☝️ 3
dominicm14:07:09

I do not agree with the emacs-like definition :) Configure dispatch to start a new window. That's what I do!

dominicm14:07:21

Then I open and close it as much as I like

dominicm14:07:41

You can even automatically run :Clj if you like, because dispatch won't run it more than necessary.

Olical14:07:18

I guess if you're using tmux? Which I do through SSH but never locally

Olical14:07:27

Or hook it into kitty to open a new window?

dominicm14:07:59

There's a built in X mode which will work too

Olical14:07:15

Oh sick, I need to have a deeper look

dominicm14:07:18

If you uninstall neovim term dispatch, then it'll probably land on X

Olical14:07:22

Too much to look at 😅