Live data from Hacker News

What's New in Neovim 0.10

gpanders.com

111–120 of 134 posts

Re: What's New in Neovim 0.10

#111

Earlier quoted context omitted.

you should use neovim distributions like LazyVim.

I did use Lazyvim. It was definitely better (though I spent a fortune in time modularizing is plugins). It just doesn't feel like a great solution for a variety of reasons. You're still a little on the hook for plugins and LSP configs. You're beholden to the distro e.g. if Lazy ever grows obsolete, Lazyvim could go too. In a perfect world there would be a neovim core (what it is now) and a formal neovim distro.

> You're beholden to the distro e.g. if Lazy ever grows obsolete, Lazyvim could go too.

That is my only concern, too. But I decided not to worry. Getting into LazyVim was very easy, so I'm not concerned potentially having to switch to another distro or IDE.

Re: What's New in Neovim 0.10

#112
post #66
post #36

I have been transitioning my workflow from macOS to Linux. Discovered it’s kind of pain in the ass to get a gui based editor like Intellij to work correctly, especially within a VM. Happened to have discovered neovim, and so far it’s been a delight to use. Much faster and much lighter on resource use. Do any neovim veterans have recommendations on plugins to enable? Or even hidden features that would improve workflow…

I usually recommend new users to check out Kickstart. It contains a set of plugins and nice to haves so you don't have to discover them your self. All plugins are in one file + has a lot of comments to help you get started. ref: https://github.com/nvim-lua/kickstart.nvim

Yep, I followed this recommendation, but when I was about to use Neovim in "production" I checked out LazyVim and AstroNVim and chose LazyVim by purely personal taste. Thanks to having learned how the config works with kickstart I don't feel lost, but still benefit from the big efforts and deep knowledge of the distro maintainers by assembling a sound full featured package.

Re: What's New in Neovim 0.10

#113
post #49

Earlier quoted context omitted.

also even the newer protocols fail to support modifier sides (left vs right shift)

Kitty keyboard protocol does indeed support modifier sides.

No it doesn't, and the author rejected the proposal to add them

https://sw.kovidgoyal.net/kitty/keyboard-protocol/

Modifiers are encoded as a bit field with:

shift 0b1 (1) alt 0b10 (2) ctrl 0b100 (4) super 0b1000 (8) hyper 0b10000 (16) meta 0b100000 (32) caps_lock 0b1000000 (64) num_lock 0b10000000 (128)

Re: What's New in Neovim 0.10

#114
post #67

Earlier quoted context omitted.

That's why I went with LunarVim, I was tired of maintaining my own plugins and configs, and wasn't quite ready to fully jump ship to Helix (though I do like the direction Helix is going, it'd be an easier sell if shells and everything had Helix keymaps).

Main main gripe about Helix is that helix-like keybindings in VSCode are not working well for the times I need to use that :)

Me too.

I am vi mode everywhere so I couldn't quite make the switch on the bindings but I loved the ideas in Helix. Truly a great project.

Re: What's New in Neovim 0.10

#115
post #101
post #42

"Nvim 0.10 can now use the OSC 52 escape sequence to write to (or read from) the system clipboard." This is a big deal! (it shouldn't be, but it is) My main complaints about vim/emacs in the past was at the sheer complexity of getting something that should not even be a concern (clipboard integration) working properly, when other text/code editors did not have this problem at all. Searching online, it seems like tmux…

> My main complaints about vim/emacs in the past was at the sheer complexity of getting something that should not even be a concern (clipboard integration) working properly What problems have you encountered? I have the following shortcuts in my .vimrc: vnoremap y "*y noremap p "*p vnoremap c "+y noremap v "+p Space + y/p is the copying/pasting from/to the "primary selection" (the mouse middle click). Space + c/v is…

My solution is to have this snippet in my vimrc. Don't ask me why this works. It's been years, and I had no issues with it.

    " System-agnostic setting making the unnamed clipboard register act like
    " clipboard in any other editor. Copy with y commands, and paste with p or P.
    if has('unnamedplus')
        set clipboard=unnamedplus,unnamed
    else
        set clipboard+=unnamed
    endif
Beside this, there is also the issue of setting paste when pasting in insert mode.

Re: What's New in Neovim 0.10

#116
post #16

Neovim is great and is my daily driver for a couple of years now. I was really looking forward to 0.10 because the roadmap said "multicursor", and that's the only thing that sometimes make me open Sublime Text, but it seems like it was more complex to implement than originally estimated and so it was now pushed to 0.12 ( https://neovim.io/roadmap/ ).

I’ve played enough games where you control multiple characters with the same controls that I don’t comprehend how someone can like multi-cursor.

Re: What's New in Neovim 0.10

#117
post #17

Wow, I love that so much stuff is coming to core! Every once in a while for the last few years I overhaul my Neovim config and try to add all the new goodies (commenting, LSP, etc., that are table stakes for most IDEs) as plugins using the latest and greatest plugin manager. That works for a while, but like clockwork, something breaks- a plugin updates incompatibly, Neovim updates incompatibly, an external binary the…

> That works for a while, but like clockwork, something breaks- a plugin updates incompatibly, Neovim updates incompatibly, an external binary the plugin relies on updates incompatibly...

Just avoid upgrading plugins until necessary. I've no idea how old some plugins are; I only upgrade when necessary (e.g.: when neovim upgrades, or when I need some new feature).

Re: What's New in Neovim 0.10

#118

For everyone asking for more IDE features...that's literally a non-goal for Neovim: https://neovim.io/charter/ Neovim aims to be extensible and enable plugins to do amazing things, but also be minimal. There are many projects that use the rich set of plugins to provide IDE experiences (LazyVim, AstroNvim, LunarVim, etc).

I like those goals, and some of the new features seem to contradict that mentality.

E.g.: the commenting feature in core. This could perfectly well be done by extensions, and it the kind of thing that doesn't feel like it should be in core at all.

Re: What's New in Neovim 0.10

#119

As a decade long vim user, I just gave nvim a try this year, and I really wanted to like it. In most every way it is a straight upgrade, but I find myself kind of bummed out that it is still so barebones on install. Really, I was hoping that something like Lazyvim would be the default because I would love a more "out-of-the-box" solution. I don't want to have to worry about keeping the LSP etc. up to date. So instead…

The goal of neovim is to be a minimal, extensible base editor. If you want something with all the bells and whistles, you probably want one of those distributions like lazyvim (disclaimer: haven't tried that one; I just know that it's a popular one).

Re: What's New in Neovim 0.10

#120
post #72

Support for inlay LSP hints is the big one for me here. That’s mainly what’s kept me from switching over from vim so far.

How does it keep you from switching from vim when vim does not have it?

Vim has had inlay hints for a while now, whereas neovim has had it for like 3 days. I think that this is what GP was referring to. Both vim and neovim have LSP support (the former via plugins).
Post reply on HN