habamax / vim-godot

Use vim and godot engine to make games
MIT License
498 stars 24 forks source link

Instructions under "Setup Neovim as an external editor for Godot" in README.adoc doesn't work #64

Closed ghost closed 1 year ago

ghost commented 1 year ago

Not sure if this might be Linux-specific, but if you run nvim --listen godothost . it creates the file /run/user/[uid]/godothost.[some_possible_random_no].0. (You can confirm with :echo v:servername.) I suppose it is possible that the instructions meant that you should replace "godothost" with some value of your own, but it's not very clear.

Using nvim --listen ./godothost . and then in Godot set the flags for external editor to --servername ./godothost --remote-send "<C-\><C-N>:n {file}<CR>:call cursor({line},{col})<CR>" works splendidly.