habamax / vim-godot

Use vim and godot engine to make games

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configuration Confusion

AgataSoda opened this issue · comments

So I've gotten this plugin, the lsp to work with CoC, running godot from vim commands(or shortcuts) seems to be working as nintendoed, the one exception I can't figure out how to fix is making the external editor work from godot..
I have neovim 4.4 on manjaro linux, installed nvr as per instructions, turned on external editor in godots menu pointed the path to:

/usr/bin/yakuake (terminal)
/usr/bin/nvim
/usr/bin/nvr (none of the previous worked)
/home/.local/bin/nvr (this one actually tried to connect but fails differently depending on the next bit below)

/account username is searched for but only in netrw which opens by default with:
--servername godothost --remote-send ":n {file}:call cursor({line},{col})"

this one in the terminal tab that has godot running, opens a new blank file, ignoring the instance of nvim that has--listen godothost .
nvim --servername godot --remote-send "<C->:n {file}{line}G{col}|"

^ ignores the instance of nvim that has NVIM_LISTEN_ADDRESS=godothost instead
nvim tries to start it doesn't let me interact with then glitches out just says: are you sure nvim is running

I've tried every path, exec flags and command flags combo I could find in the forums, the issues forum here etc. including bleow
NVIM_LISTEN_ADDRESS=/tmp/nvimsocket nvim (changed the godot exec flag to match the server names given)
NVIM_LISTEN_ADDRESS=/tmp/godothost nvim

Clearly I'm doing something wrong after several dozen combinations the conclusion I've come to is the flags combo is not the one needed for yakuake(the terminal) but my brain has now turned to mush and I can't figure it out.

Any help would be greatly appreciated! Other than opening files from godot this plugin has been awesome :D

After a lot of playing around:
NVIM_LISTEN_ADDRESS=/tmp/nvimsocket nvim
^ Before opening nvim

/full/path/to/nvr
^ In godot as exec path

Left exec flags empty and it opens files like a champ! :D