What’s New in Neovim 0.13

a month ago by unglueclass23 to c/neovim

Neovim 0.13 is still under development, but it is already shaping up to be one of the more interesting Neovim releases in a while.
alk 6 points a month ago

Nice features, but this article is pure slop.

path: 0 25681492, hotness: undefined, score: 6, children: 2
unglueclass23 1 point a month ago

What makes you say that?

path: 0 25681492 25687193, hotness: undefined, score: 1, children: 1
alk 1 point a month ago

At the very least, the text diagrams. But I learned a few things, so it's still a valuable atticle!

path: 0 25681492 25687193 25688452, hotness: undefined, score: 1, children: 0
hallettj 3 points a month ago

There are lots of substantial improvements coming! I'll point to some points that appeal to me personally that aren't big enough to make headline news given how much else is coming.

Neovim also adds:

vim.treesitter.select()

for starting or adjusting visual selections based on syntax-tree nodes.

AST-aware editor interactions are something I've really been missing since leap-ast.nvim was archived. Maybe there's a good plugin for quick selections or text objects based on AST structure that I haven't gotten around to trying. But I'm looking forward to built-in building blocks!

Edit: Wow I'm dense - leap-ast was archived because Treesitter integration is now built into leap.nvim.

Neovim now exposes a logging interface:

vim.log

Sounds like a quality-of-life change that will be real nice to have when you want it! I hope this will replace my uses of print(vim.inspect(...))

There is now:

:bcd

for setting a buffer-local current directory.

I've been surprised in the past that this wasn't possible before.

And finally, the :restart command to apply your updated editor config while preserving your open buffers and windows!

path: 0 25685018, hotness: undefined, score: 3, children: 1
unglueclass23 3 points a month ago

The new textobjects al and il are a great addition as well. Won't need a shortcut to select the whole buffer anymore and won't need to do 0 -> ^ -> y$

path: 0 25685018 25687191, hotness: undefined, score: 3, children: 0
Maddier1993 0 points a month ago

At this point we need a bootcamp to setup our editors first before we have the bootcamp/course for the actual language/work we want to accomplish.

Well, congratulations on neovim graduating the university of complexity! Emacs was the chief guest.

path: 0 25678806, hotness: undefined, score: 0, children: 5
unglueclass23 7 points a month ago

:D well.... you can always use a distribution like lazyvim and chill

path: 0 25678806 25679197, hotness: undefined, score: 7, children: 1
MadhuGururajan 0 points a month ago

Huh.. I was trying to make a joke like people usually do at the expense of emacs but I came across some humourless accounts. (And this is my alt... don't be weirded out)

path: 0 25678806 25679197 25810160, hotness: undefined, score: 0, children: 0
hallettj 2 points a month ago

Is there some change you're particularly concerned about wrt to setup complexity? Lots of the changes might simplify setup because they build in functionality that previously required plugins. The LSP improvements mainly apply at the interface between LSP server and editor, not stuff that users would set up themselves. A bunch more changes are either behind-the-scenes performance improvements, or are directed at plugin authors. There are new features added. But I don't see anything that makes set up more complicated.

path: 0 25678806 25685080, hotness: undefined, score: 2, children: 2
MadhuGururajan 1 point a month ago
path: 0 25678806 25685080 25810118, hotness: undefined, score: 1, children: 0
MadhuGururajan 0 points a month ago

Replying from my alt:

I was trying to make a joke but seems it rubbed off the wrong way. Although I do think there's a philosophical discussion of complexity to be had here.

The problem with thinking "We have now simplified xyz software" is software developers have this bad habit of often assuming that the world updates to the latest and greatest version of software the moment they deploy it and they erase any semblence of past versions, shortcomings, or even workarounds that others may have deployed and trained their muscle memories on.

Complexity actually goes up the more versions of software that are released in the world.

You now have neovim <= 0.12, <= 0.13, 0.13 to keep in your head if someone comes to you for advice on how to setup this cool editor on their distro and they may or may not be able to upgrade to the latest version.

path: 0 25678806 25685080 25810141, hotness: undefined, score: 0, children: 0
neovim
neovim

@programming.dev

login for more options
2936
238
88

go to feed...