-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup with rust_analyzer and rust_tools #33
Comments
Thanks for the feedback. I do not think you need {bind=true} as your configure does not bind anything I can not reproduce the issue you saw: Here is my vimrc
But I do notice that it takes rust analyzer a few seconds to startup. During that time, there is no response from rust lsp. |
Thanks for the tip about I tried this with my nix setup on MacOS as well, and I got the same results, as I mentioned in the first post DetailsFor completion, this is the exact config I am using. (This is in home-manager) programs.neovim = {
enable = true;
vimAlias = true;
plugins = with pkgs.vimPlugins; [
nvim-lspconfig
lsp_signature-nvim
rust-tools-nvim
];
extraConfig = ''
lua <<EOF
require'lspconfig'.rust_analyzer.setup{}
require'lsp_signature'.on_attach({})
require('rust-tools').setup(opts)
EOF
'';
package = pkgs.neovim-nightly;
}; And the following is the generated vimrc
I did make sure that rust-analyzer was up and running. Additionally, I currently do not have access to non-nixified systems, when I do get it I will give it a shot again. |
Is the issue reproducible with my vimrc (with Plug) I will maintain the plugin set up for Plug, Dein, Packer and minipac. Also when the plugin not working. If you trigger the plugin manually by running
Dose it show the signature? |
I don't really have access to a non-nix system, so I can't really test it with Plug, Dein, etc. Moreover, I would like to avoid installing any of them. In future, I will give it a shot and try in a non-nix system and see if this works.
This could be an issue that is specific to nix (i.e. if one uses nix package manager instead of other like Plug, Dein etc) |
Close as no plan for me to move to nix system. |
First off, awesome plugin.
Rust Setup (Not Working)
Tried a normal setup with rust it does not work.
Minimal Not Working RC (look caveat below)
Though as mentioned in the readme if I add this in the rust_analyzer setup everything works perfectly fine.
There is a plugin called rust-tools which I use in my setup. I ran into an issue where this plugin was not working with rust_tools.
Rust Setup (Not Working)
Minimal Not Working RC (look caveat below)
Rust Setup (Working)
But if I change the ordering of these then it does work. Example -
Minimal Wokring RC (look caveat below)
Why report this issue if this is working?
Caveat
Note: I am using NixOS and I have installed these with the nix pckage manager, so I don't have a vim/neovim installer. Don't really know how they work. But should be standard enough to set up.
Packages used here are
The text was updated successfully, but these errors were encountered: