Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Rescript in neovim

$
0
0

Hey,

since language server version 1.62 or 1.63 you have to track for file changes by your own.
So you can add the capabilities field to the lsp config:

capabilities = {
    workspace = {
        didChangeWatchedFiles = {
            dynamicRegistration = true,
        },
    },
}

After adding this config, the lsp will update the errors after saving files.

If you use nvim-lspconfig, I added this information to their wiki (nvim-lspconfig/doc/configs.md at master · neovim/nvim-lspconfig · GitHub) and will add the config as default after the release of rescript 12.


Viewing all articles
Browse latest Browse all 2592

Trending Articles