Skip to content

Mason fails to install nil_ls but manual installation succeeds #1767

Answered by cospectrum
a-torgovitsky asked this question in Q&A
Discussion options

You must be logged in to vote
  • Run :MasonInstall yq to install yq, which will help mason to parse yaml.
  • Clone the mason registry git clone https://github.com/mason-org/mason-registry.git and place it somewhere, for example, inside ~/.config/nvim/ folder.
  • Update the nil tag to 2024-08-06 inside ~/.config/nvim/mason-registry/packages/nil/package.yaml:
source:
  # renovate:versioning=loose
  id: pkg:cargo/nil@2024-08-06?repository_url=https://github.com/oxalica/nil
  • Inside your nvim cfg, setup mason to use the local registry:
require('mason').setup {
  registries = {
    'file:~/.config/nvim/mason-registry',
  },
}
  • Reopen nvim and install nil with mason.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@cospectrum
Comment options

Answer selected by a-torgovitsky
@a-torgovitsky
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants