Skip to content

Conversation

@Jint-lzxy
Copy link
Collaborator

This PR does three things:

  • Allows users to overwrite the init options of rustaceanvim thru their custom configs;

  • It gives a heads-up to users that if they're still manually setting up rust_analyzer, this will result in two identical servers being spawned;

  • DAP-related settings are disabled by default to avoid potential conflicts with previous user configurations. IMO since we already have configs for codelldb that can be used, users can simply tweak those configs on their own. But I'm not 2 sure about this, as I personally don't do much rust development. What do u guys think @ClSlaid @CharlesChiuGit @ayamir?

This PR does three things:

- Allows users to overwrite the init options of `rustaceanvim` thru
their custom configs;

- It gives a heads-up to users that if they're still manually setting
up `rust_analyzer`, this will result in two identical servers being
spawned;

- DAP-related settings are disabled by default to avoid potential
conflicts with previous user configurations. IMO since we already
have configs for `codelldb` that can be used, users can simply tweak
those configs on their own. But I'm not 2 sure about this, as I
personally don't do much rust development. What do u guys think?
Copy link
Owner

@ayamir ayamir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@charliie-dev charliie-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems reasonable

@charliie-dev charliie-dev merged commit 059d3c4 into main Jan 10, 2024
@charliie-dev charliie-dev deleted the fix/rust-tools branch January 10, 2024 14:05
ttbug pushed a commit to ttbug/nvimconf that referenced this pull request Jan 12, 2024
This PR does three things:

- Allows users to overwrite the init options of `rustaceanvim` thru
their custom configs;

- It gives a heads-up to users that if they're still manually setting
up `rust_analyzer`, this will result in two identical servers being
spawned;

- DAP-related settings are disabled by default to avoid potential
conflicts with previous user configurations. IMO since we already
have configs for `codelldb` that can be used, users can simply tweak
those configs on their own. But I'm not 2 sure about this, as I
personally don't do much rust development. What do u guys think?
singlemancombat pushed a commit to singlemancombat/nvim-config that referenced this pull request Jan 14, 2024
This PR does three things:

- Allows users to overwrite the init options of `rustaceanvim` thru
their custom configs;

- It gives a heads-up to users that if they're still manually setting
up `rust_analyzer`, this will result in two identical servers being
spawned;

- DAP-related settings are disabled by default to avoid potential
conflicts with previous user configurations. IMO since we already
have configs for `codelldb` that can be used, users can simply tweak
those configs on their own. But I'm not 2 sure about this, as I
personally don't do much rust development. What do u guys think?
@yyb196
Copy link

yyb196 commented Jun 25, 2025

I use the current master branch, and I also have two rust-analyzer LSP server, I don't get the WARN notification this pr add, please help, how can I solve this

image

@yyb196
Copy link

yyb196 commented Jun 27, 2025

after I remove rust_analyzer.lua in lsp-nvimconfig plugin, it works, only one LSP server left for rust buffer, I have no idea:
image
image

@charliie-dev
Copy link
Collaborator

@yyb196 i think you r not on the latest config, check #1479

@yyb196
Copy link

yyb196 commented Jun 27, 2025

@CharlesChiuGit thanks for your feed back, I have backport the pr you mentioned a couple dayes ago, still don't work.

or is there a command or operation needed to make new config work after changing config?

@charliie-dev
Copy link
Collaborator

charliie-dev commented Jun 27, 2025

@yyb196 had u do :Lazy sync to update all the plugins?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants