gvrooyen, It took me a bit of fiddling around to figure out why my #neovim language server setup didn't play nicely with #gleam. I manage my language configs with the excellent Mason (which has deprecated Gleam support that worked for me for a while).
Turns out Mason isn't currently compatible with a language like Gleam where the LSP is part and parcel of the toolchain – see @lpil's explanation: https://github.com/mason-org/mason-registry/pull/3872
The solution is to simply manually add Gleam in your init.lua's "lspconfig": https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#gleam
Must say, I love Gleam's compiler and language server diagnostics: It feels so kind and helpful 😁
Add comment