3

Developing Godot Projects with Neovim

 1 year ago
source link: https://devpoga.org/blog/2022-07-23_neovim_godot/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Developing Godot Projects with Neovim

Developing Godot Projects with Neovim

23 Jul, 2022

When I started using Godot Engine, what surprised me the most is the built-in Language Server Protocol support. Thank to it, I can easily develop GDScript with all my customized vim configs.

Setup

Install vim-godot.

Plug 'habamax/vim-godot'

Install neovim-remote.

pip3 install neovim-remote

Setup Neovim as the external editor for Godot

  1. Open menu Editor/Editor Settings/ then navigate to General/External/:
  2. Tick Use external editor
  3. Set nvr to Exec Path, use which nvr to get the absolute path.
  4. Add --servername godothost --remote-send "<C-\><C-N>:n {file}<CR>:call cursor({line},{col})<CR>" to Exec Flags

Start Neovim and listening to remote commands:

nvim --listen godothost .

now when you click on a script in godot it will open it in a new buffer in Neovim.

That’s all

#Godot #Neovim

Made with Hugo ʕ•ᴥ•ʔ Bear


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK