• xlash123@sh.itjust.works
    link
    fedilink
    arrow-up
    12
    arrow-down
    1
    ·
    8 months ago

    Switching to Neovim is on my to-do list. What do you recommend as a good way to get up to speed?

    • Fedop@slrpnk.net
      link
      fedilink
      arrow-up
      14
      arrow-down
      1
      ·
      8 months ago

      Try starting with LazyVim! It has a great selection of plugins pre-set, and it all works out of the box. It’s a great way to get started, and then you can add/remove plugins later on. Also, it’s keymap-shortcut page is great for the first week or so of learning the commands.

      • someacnt_@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        8 months ago

        I disagree with this recommendation, the maintainer closed a breaking issue (default syntax highlighting breaks on clean install) saying “workaround exists”. That’s a red flag ime.

    • pixxelkick@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      8 months ago

      I try and start using it for basic tasks, like note taking, to get used to its interface and basic commands like :w and :q, as well as switching between insert and cmd mode.

      Once you are familiar with switching between modes, copying, pasting, etc, then you probably will wanna Starr learning it’s lua api and how to load in some QoL plugins. Basic stuff like treesitter, telescope, and nvim-tree are good places to start.

      Once you feel comfortable with swapping between files with telescope and configuring plugins, I’d deep dive into getting an LSP up and running for your language of choice so you can actually code.

      In the interim I’d recommend getting comfy with using tmux in your terminal, try and open new tmux tabs to do units of work instead of constantly cding around.

      I like to keep 4 tmux tabs open for a project:

      • nvim
      • lazygit
      • secrets file open in nvim (usually my secrets file is in another dir so it doesn’t check into git)
      • a general terminal tab for running commands
    • Meltrax@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      8 months ago

      The videos by TJ DeVries seem like probably the best starting point there is. He’s a contributor, has built a setup script that’s meant to be minimalistic and configurable, and has tons and tons of info about running through all of it yourself.