dundalek / lazy-lsp.nvim

Neovim plugin to auto install LSP servers
MIT License
203 stars 17 forks source link

Question: How to debug and/or customize version? #4

Closed unphased closed 1 year ago

unphased commented 1 year ago

I noticed that the clangd version that is provided is 11. When i was using clangd with coc.nvim it was auto-installing clangd 14. I would like to know what would be involved to customize/update something like this in this framework. I do not know anything about nix so the lack of documentation is a little challenging.

dundalek commented 1 year ago

It works by using the clang-tools nix package, which is at version 14 for both stable (22.11) and unstable channels (channels are like distribution release versions).

You can verify which on which channels you are using with nix-channel --list, you will likely need to do an update with nix-channel --update. For more info about channels see the docs.

To verify you can run following: nix-shell -p clang-tools --command "clangd --version" You will get the same version printed by the command inside neovim, for me it gives clangd version 14.0.6.

dundalek commented 1 year ago

@unphased Were you able to figure it out and get it working?

dundalek commented 1 year ago

Added a note about channels in https://github.com/dundalek/lazy-lsp.nvim/commit/c6593b96b1ede3f050621e3f5c070f581282f019