Giter Site home page Giter Site logo

Comments (5)

ray-x avatar ray-x commented on May 18, 2024

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.

nixypanda avatar nixypanda commented on May 18, 2024

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.

ray-x avatar ray-x commented on May 18, 2024

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.

nixypanda avatar nixypanda commented on May 18, 2024

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.

ray-x avatar ray-x commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.