Comments (4)
This is weird, and I don't know what could cause this.
However, the thing to try first is to set plugins.lsp.servers.rust-analyzer.installCargo
and plugins.lsp.servers.rust-analyzer.installRustc
to false
.
Like so, the LSP will fall back to using the cargo/rustc from your environment.
from nixvim.
Looks like it works !
In my config I'm using rustaceanvim instead of configuring rust-analyzer all by myself. Doing what you wrote made the error disappear, but I now have two RA running with the message:
nvim-lspconfig.rust_analyzer has been setup.
This will likely lead to conflicts with the rustaceanvim LSP client.
See ':h rustaceanvim.mason'
I tried to change my config in this way:
rustaceanvim = {
enable = true;
settings = {
server = {
default_settings = {
rust-analyzer = {
installCargo = false;
installRustc = false;
cargo = {
allFeatures = true;
};
check = {
command = "clippy";
};
inlayHints = {
lifetimeElisionHints = {
enable = "always";
};
};
};
};
standalone = false;
};
};
};
but it didn't work. I'll continue to see how I can avoid that warning message ;)
from nixvim.
Feels like I have to enable rust-analyzer
(https://github.com/nix-community/nixvim/blob/main/plugins/lsp/language-servers/rust-analyzer.nix#L40) for the installCargo/Rustc
option to be taken into account.
Do you think there's a way around that without pulling the checks out of the lib.mkIf
?
from nixvim.
@GaetanLepage do you know of a way to configure installCargo
and installRustc
to false while using rustaceanvim
and not rust-analyzer directly ?
from nixvim.
Related Issues (20)
- [BUG] format: no formatter for path: .editorconfig
- [BUG] Standalone nixvim fails to build when included in package list in cross-compile HOT 2
- `mkPackageOption` helper with `defaultText`
- lsp.servers.nil-ls crashes [BUG] <BUG>
- [BUG] luasnip filetype_extend
- [BUG] tsserver seems to be broken when NOT running via `nix run .` HOT 1
- `plugins.*.package` should be nullable, to use package from system. HOT 7
- [BUG] `templ` files handled as plaintext files when templ LSP is enabled HOT 8
- [PLUGIN REQUEST] neotest-golang
- Deprecate strLua types/option helpers HOT 2
- Better `package` option helpers HOT 1
- [BUG] The update CI schedules on forks
- [PLUGIN REQUEST] FeMaco
- [BUG] Alias @astrojs/language-server is still in node-packages.nix HOT 2
- [BUG] flaky codium test in cmp-sources
- [BUG] `disallowedRequisites` is used on a derivation that doesn't support it HOT 2
- [PLUGIN REQUEST] flutter-tools
- [BUG] Error with vscode-langservers-extracted dependent lsp servers HOT 3
- [BUG] Error when lsp html server is enabled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixvim.