• nivenkos@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Could you share your config?

      I switched to the built-in LSP but keep hitting small issues with changes to mappings, etc. and keeping rust-analyzer updated is a pain.

      So now I just use vscode, even though I’d really like to have neovim set up for small things.

  • rath@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Wow, no one mentioning IntelliJ?? I use the free edition with Rust and it works great… the only thing missing is a debugger, which requires the CLion distribution which is not free… but so far that hasn’t been a big problem for me.

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

    I am not a hardcore programmer, but anytime I code anything, I use vscodium. It is VScode without the microsoft telemetry.

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

        It has the same plugin system, but they pull from Open VSX rather than Microsoft’s extension marketplace. If there’s an extension not available there, you can still download it from Microsoft’s marketplace and then add it manually.

        • zaop@sopuli.xyz
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          It’s also possible to swap out the extension registry entirely and still use Microsoft’s marketplace instead of Open VSX in VSCodium.

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

    neovim. I’ve been using vim or neovim for >25 years and it’s changed how my mind works to the point that other editors are awkward. I can also reliably find some form of vi on any machine I log onto and, while I am not necessarily writing Rust on a random machine at work, having to learn just one program for editing is nice.

    • LinuxEnjoyer@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      +1 for Neovim I love that thing.

      If anyone’s curious/interested in it… while the stock editor is pretty “basic” (it can still do a ton of stuff!), the plugin ecosystem (or whatever it’s called) is really nice. You can use “pre-built” ones like LunarVim, LazyVim, or NvChad (I’ve used this one, it aims to be highly customisable and it’s pretty nice). There are probably many others.

      You might want to get used to the key binds and such before doing any of that though ahahah. Once you open it, if you type :Tutor and press enter it should bring you to a little tutor program for explaining the basics.

      I do however highly encourage you to try making your own config! You could write it in vimscript, but Neovim has full support for Lua. You can even have multiple different init files for it. (You can select them with the -u flag when running nvim. Like: nvim -u path/to/my/config_file.lua ). I liked ThePrimeagen’s video about making a config from scratch (personally I really like his energy and personality, but he does sometimes yell and stuff (i don’t think there’s much of this in this video) so it might not appeal to everyone). I haven’t really looked at any other resources (besides the built-in :help lua-guide and random searches), but I’m sure there’s a ton out there.

      It’s really fun :DD

    • TheBaldness@beehaw.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      I’m ignorant and putter around with WebStorm as an IDE, but I’d like to ditch it. Does neovim have similar functionality? I thought it was more of a text editor.

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

        I have stayed as far as I can from web development for about 10 years so I can’t answer that question.

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

          You’re wise. The entire JavaScript ecosystem is really great and hot garbage at the same time.

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

    No one has said Emacs yet, I was a long time vim/neovim user but switched a couple of years ago, still learning rust but it’s been pretty comfy so far, plus I can wash my dishes in it.

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

    vscode. I think anything that supports LSP works well with rust, but my vscode setup is comfy enough and devcontainers are rather nice.

  • your_name_please@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    I used VSCode for a few months and tried the CLion free trial after missing some of the features from IntelliJ I use at work. I think CLion edges out just a little, but not by much. Both have some rough patches.

    Next time I pick up a Rust project I want to try neovim; I keep ending in tutorial hell for vim and never actually building anything with it. But before that, I think I want to ditch my Windows OS all together and pick some Linux distro, something I’ve been putting off a very long time.

    • TheBaldness@beehaw.org
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Try Linux Mint. It’s made for people who are coming over from Windows. You’ll find it feels very familiar.

      • zaop@sopuli.xyz
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        This was also the distribution I chose when first moving away from Windows and I can definitely recommend it. The vast majority of things worked out of the box, and people on the Linux Mint forum were very helpful in solving my remaining issues.