0 votes

I've been using neovim + coc for gdscript for some time now. Recently I decided to switch to neovim's native LSP. The gdscript side of things works like a charm. However many neovim plugins do not support gdscript.

So I would like to give C# scripting a shot in Godot but can't seem to get it to work. I've downloaded csharp_ls as per the config.md of nvim-lspconfig and the csharp server is working fine; I'm getting linting errors and basic autocomplete but I can't get it to connect to Godot. Any ideas?

in Engine by (19 points)

1 Answer

0 votes
Best answer

For anyone interested, the solution is quite simple. Using the williamboman/nvim-lsp-installer plugin, install the omnisharp server and set it up using the options from the CONFIG.md instructions of lspconfig. Then go to ~/.local/share/nvim/lsp_servers/omnisharp/ and change the run script's bin _dir variable to /usr/bin.

by (19 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.