Comments (5)
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
set termguicolors
call plug#begin('~/.vim/plugged')
Plug 'neovim/nvim-lspconfig'
Plug 'simrat39/rust-tools.nvim'
Plug 'ray-x/aurora'
Plug 'ray-x/lsp_signature.nvim'
call plug#end()
lua <<EOF
require'lspconfig'.rust_analyzer.setup{}
require'lsp_signature'.on_attach({})
require('rust-tools').setup(opts)
EOF
set mouse=a
colorscheme aurora
But I do notice that it takes rust analyzer a few seconds to startup. During that time, there is no response from rust lsp.
So to avoid that, open your rust file. Take a really deep breath (or maybe two), and then begin to write code....
from lsp_signature.nvim.
Thanks for the tip about bind
I tried this with my nix setup on MacOS as well, and I got the same results, as I mentioned in the first post
Details
For 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
set packpath^=/nix/store/9j0dz6fdi2ccpddim5w13i5zcsvmf0yl-vim-pack-dir
set runtimepath^=/nix/store/9j0dz6fdi2ccpddim5w13i5zcsvmf0yl-vim-pack-dir
lua <<EOF
require'lspconfig'.rust_analyzer.setup{}
require'lsp_signature'.on_attach({})
require('rust-tools').setup(opts)
EOF
But I do notice that it takes rust-analyzer a few seconds to startup.
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.
from lsp_signature.nvim.
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
lua require'lsp_signature'.signature()
Dose it show the signature?
from lsp_signature.nvim.
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.
lua require'lsp_signature'.signature()
works. Additionally if I manually execute lua require'lsp_signature'.on_attach()
then the plugin works as intended.
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)
from lsp_signature.nvim.
Close as no plan for me to move to nix system.
Also there are users who report rust is working.
from lsp_signature.nvim.
Related Issues (20)
- always_trigger = true doesnt work HOT 1
- Signature help pops up and blocks the UI when no method/class has been chosen yet HOT 2
- Cursor position outside buffer HOT 7
- max_width is not working HOT 2
- How to trigger GoFmt command on save?
- Trying to get signature on empty line, breaks jedi-lsp server HOT 1
- Errors on empty lines for terraform files HOT 9
- why the Right parenthesis will in redοΌ HOT 2
- Disable floating window auto show after a while HOT 2
- Floating window keeps turning on and off HOT 11
- Documentation in the floating window gets stuck
- New release/Tagged commit? HOT 1
- Doesn't show signature when i open only a single file, works when i open a directory HOT 3
- Inconsistent syntax highlighting
- Parameter highlighting temporary HOT 1
- Continuously flashing in certain positions HOT 2
- [feat] Allow disabling in certain contexts, e.g. comments
- Attempt to call field 'get_clients' (a nil value) HOT 3
- Show Signature of Current Parameter
- regression on `toggle_float_win()` HOT 3
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 lsp_signature.nvim.