nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

generated: unpackaged options should display a better error message

Open MattSturgeon opened this issue 1 year ago • 0 comments

Currently we rely on a no-default package option when there is no known package in nixpkgs for a none-ls, efmls, or LSP server.

This results in a fairly generic error:

error: The option `plugins.lsp.servers.<name>.package' was accessed but has no value defined. Try setting the option.

Instead we should handle these cases with our own custom assertion so that we can provide a more useful error message.

See prior discussion in https://github.com/nix-community/nixvim/issues/2405

MattSturgeon avatar Oct 12 '24 16:10 MattSturgeon