• raubarno@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I also use Neovim with coc-rust-analyzer as my daily setup, although, for large projects, it eats up to 4GB of RAM :/

    • luna@beehaw.org
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      neovim has built-in LSP support and it works so. SO. SO! much better than coc-rust-analyzer. Start with this repo. I promise you that it’ll be a better experience for you. No node.js, only native code, and it’s significantly faster. The coc LSP plugins are really intended for vim because it doesn’t have asynchronous execution for plugins.

      • artaban@lemmy.ml
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        Totally agree with this, neovim with LSP is PERFECT! I had a lot of problem’s with coc and it was terrible, one day it worked one day it had another problems… Recently i decided to try Neovim with lua so i followed this tutorial video. You should take a look, believe me.

        • luna@beehaw.org
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          1 year ago

          I also had huge problems with it, and indeed LSP support is why I use neovim these days and not vanilla vim. I probably had problems similar to what you did: sometimes it’d work, often it wouldn’t. And it was SO slow. I’m also using recent, powerful hardware: top of the line MacBook Pro, 16 core / 64 GB RAM Linux workstation, both on SSD/NVME storage. Once I switched to the built-in LSP, all my problems disappeared. I’m pretty happy with my current setup, and videos are hard for me to follow for tech stuff, but others who aren’t already may want to look at the video.

          I should point out that even this repo reinvents things that are already in vim: you don’t need packer. Vanilla vim has package management now, all you need to do is put the plugins in a directory under ~/.vim/pack/whatever/start. See :help packages for more.

    • sokkies@lemmyrs.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Wow crazy. I honestly couldn’t say what lsp settings I use. My personal config broke a while back and I use Astronvim now until I get to fixing it… Although so far its been good enough that I just dont bother moving back…

      • raubarno@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Yea, for me it’s also working pretty fast (unused ram is wasted ram anyway), just that I must always keep an eye on my RAM usage of my 10-year-old PC with 8GB of RAM and HDD only…