Buf-language-server error #2837
-
After a recent update I am suddenly getting the below error in the nixvim configuration. I don't know what the buf-language-server is and I do not have it configured in my list of lsp servers. Even if I remove all of my lsp configurations this error still persists, and in fact even changing my configuration to the most minimal nixvim configuration doesn't resolve the error:
error: 'buf-language-server' was removed as its development has moved to the 'buf' package |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This looks like a mismatched pkgs issue. Essentially, if you do not use the exact same version of nixpkgs that we test against, then it is possible for these kinda errors to occur. You probably ran into this because we haven't bumped our nixpkgs version for a while, due to #2845. #2844 should resolve that. Related issues: |
Beta Was this translation helpful? Give feedback.
-
My nixpkgs is tracking the unstable branch:
I was able to fix the issue by changing:
To:
Which is confusing to me because I thought my original configuration was nixvim tracking unstable, but I guess that was wrong? What version of nixvim should I track to align with unstable? |
Beta Was this translation helpful? Give feedback.
Unfortunately, the nixpkgs-follows often has little-to-no effect on the
pkgs
version that nixvim ends up using, because by defaultpkgs
is taken from the nixos/home-manager module that nixvim is imported into.If you use an up-to-date nixvim unstable, then you can avoid it by setting
programs.nixvim.nixpkgs.useGlobalPackages = false
(docs)See #2839