Codelens and @spec suggestions missing for elixir-ls in Neovim 0.11

using Neovim 0.11 and elixir-ls 0.27.2 with erlang 27 and elixir 1.83
I have turned on everything

vim.lsp.config('elixirls', {
	cmd = { '/path/to/language_server.sh' },
	capabilities = capabilities,
	filetypes = { 'elixir', 'eelixir', 'heex', 'surface' },
	-- default settings, use the `settings` function to override settings
	settings = {
		elixirLS = {
			dialyzerEnabled = true,
			fetchDeps = true,
			enableTestLenses = true,
			suggestSpecs = true,
			incrementalDialyzer = true,
			signatureAfterComplete = true,
		},
	}
}
)

but I don’t get test codelens or suggested @spec also hover help only seems to work with native functions and not mine

Is lsp ignoring the settings becuase I have something wrong :frowning:

obviously I have changed path/to

  1. is the language server running, check with LSPInfo ?
  2. if not, check if the language_server.sh is executable

regarding @spec suggestion, I’ve seen this vs code, but, I think, never in neovim

1 Like

Yeah it does run but doesn’t do go to definition on my code or show documentation on my code

I changed back to using the lsp-config plugin and this fixed it