habamax / vim-godot

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

vim-godot breaks LSP with coc.nvim #20

Closed CyanBlob closed 4 years ago

CyanBlob commented 4 years ago

Scenario

coc.nvim is set up, tested, and working. It's configured with:

    "languageserver": {
    "godot": {
      "host": "127.0.0.1",
      "filetypes": ["gd", "gdscript3"],
      "port": 6008
}

After installing vim-godot, all LSP features seem to stop working. There's no longer any completion, linting, etc. Uninstalling vim-godot immediately fixes the problem.

I'm using: Godot 3.2.3 nvim 0.4.4 Latest coc.nvim

The Godot editor occasionally logs the following with vim-godot installed:

Cannot represent Sec-WebSocket-Version: 13
Sec-WebSocket-Key: P1rQGvVPscqaU0Q84run5Q==
Connection: Upgrade
Upgrade: websocket
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
Host: localhost:6008 as integer, provided value is too big.
habamax commented 4 years ago

Hi Andrew, vim-godot can't break LSP as it has nothing to do with it.

Try example from the readme: https://github.com/habamax/vim-godot#setting-up-cocnvim-for-godot-322

PS, you have not set godot lsp server for gdscript filetype which this plugin sets up for gdscript files.

PPS, also check your coc setup -- it lacks one closing bracket }.