Live data from Hacker News

Neovim 0.5 is overpowering

crispgm.com

421–429 of 429 posts

Re: Neovim 0.5 is overpowering

#421

> Language Server Protocol is created by Microsoft, RedHat and Codenvy, which provides language features (e.g. completion, navigation, formatting, and so on) through JSON-based RPC protocol... I'm missing out on this. Is it on par (at least potentially - in terms of what it enables you to implement) with JetBrains IDEs and ReSharper already?

I haven't used LSPs too much, but I'll say they work to a good degree.

IDEA is hyper optimized for their target languages, from what I know Intellij builds custom engines for every language, so at least in some aspects (large scale refactoring) and at least for now, IDEA and its siblings are a step ahead.

But for 90%ile tasks, LSP is good enough.

Re: Neovim 0.5 is overpowering

#422

I'm a long time (20+ years) vim user, and neovim doesn't fit my use case. I've tried it, most recently today, to have a look at LSP and treesitter. Treesitter added different syntax colors, but the result wasn't necessarily better than vanilla vim. More like an overly decorated christmas tree. LSP and other "make it into an IDE" I usually turn off after a few minutes, it's more of a hindrance than a help. I mainly co…

Agree totally. My experience with NVim 0.5, which is what most configs require, was errors and instability all over the place. I also don't like telescope which froze nvim on me completely.

Re: Neovim 0.5 is overpowering

#423
post #358
post #177

Earlier quoted context omitted.

Thanks for making your configuration available, I want to try out Neovim because it's an exciting project and having carefully constructed configurations available as a starting point will make it easier. Your configuration doesn't look too long to me, my own Emacs configurations are much, much longer and not at all stable--every so often I declare Emacs bankruptcy and start over. Now, some off-topic musings: I switc…

If you’re interested in projects working on “modernising” Emacs check out https://github.com/emacs-ng/emacs-ng No affiliation and haven’t even used it - but it seems to have legs.

I don’t know how I missed that project. While very ambitious, I feel that it’s direction is the most practical proposal I’ve heard to modernize Emacs.

Re: Neovim 0.5 is overpowering

#424

> Language Server Protocol is created by Microsoft, RedHat and Codenvy, which provides language features (e.g. completion, navigation, formatting, and so on) through JSON-based RPC protocol... I'm missing out on this. Is it on par (at least potentially - in terms of what it enables you to implement) with JetBrains IDEs and ReSharper already?

I haven't used LSPs too much, but I'll say they work to a good degree. IDEA is hyper optimized for their target languages, from what I know Intellij builds custom engines for every language, so at least in some aspects (large scale refactoring) and at least for now, IDEA and its siblings are a step ahead. But for 90%ile tasks, LSP is good enough.

> custom engines for every language

Isn't a language server an engine custom built for a particular language?

> at least for now, IDEA and its siblings are a step ahead.

For the languages they supported back then, they have been [almost] as good 10 years ago as they are today. The step seem really huge if there still is nothing nearly catching up.

Re: Neovim 0.5 is overpowering

#425
post #223

Earlier quoted context omitted.

So the second time, you're entering Visual Block mode or plain Visual mode? What does the g Ctrl+A do?

g Ctrl-A increments all the numbers, but every instance gets incremented by one than the previous. First line would be Enum1, second Enum2, third Enum3. It's a really neat feature imo. Though I did make a mistake, if you selected everything it'd catch the name numbers too, so you'd have to go into visual block mode and only select the enum parts, then do g Ctrl-A. That said the numbers probably weren't supposed to be…

Thanks

Re: Neovim 0.5 is overpowering

#426

Earlier quoted context omitted.

I haven't used LSPs too much, but I'll say they work to a good degree. IDEA is hyper optimized for their target languages, from what I know Intellij builds custom engines for every language, so at least in some aspects (large scale refactoring) and at least for now, IDEA and its siblings are a step ahead. But for 90%ile tasks, LSP is good enough.

> custom engines for every language Isn't a language server an engine custom built for a particular language? > at least for now, IDEA and its siblings are a step ahead. For the languages they supported back then, they have been [almost] as good 10 years ago as they are today. The step seem really huge if there still is nothing nearly catching up.

IDEA has wicked refactoring abilities. If I rename a class, it will find all the functions whith input param of this class and ask to rename them as well. It can identify class references from plain strings. This is useful at least in Java where xmls reference classes or testdata comes from another variable. The last one may be personal subjective bias, but auto complete options are always spot on, heavily affected by context and recent selection, while LSP auto complete suggestions while good, are a rough estimate of what I want.

Re: Neovim 0.5 is overpowering

#427

Earlier quoted context omitted.

Irrelevant nit, but: > “Basically, the only ‘intuitive’ interface is the nipple. After that, it's all learned.” The nipple is not intuitive for everyone. One of our children struggled mightily with the nipple and we had a miserable two or three months of breastpumping and finger-feeding before he finally figured it out.

Following-up on irrelevancy: what made you stick? We had the same experience, but gave up after 6 weeks because breastpumping was exhausting, and switched to bottles and artificial milk which our daughter loved immediately.

I think the belief (based on what evidence we're aware of) that breast milk is genuinely better for babies.

My wife and I are both sort of gluttons for punishment if we're convinced something is the right path.

Re: Neovim 0.5 is overpowering

#428
post #2

Neovim 0.5 is awesome. It has native LSP support, Lua configuration support that it feels like true revolution over past versions. But, getting into optimal setup in neovim/vim involves lot of configuration. Here is mine if you want to refer: https://github.com/varbhat/dotfiles/tree/main/dot_config/nvi...

Nice config. I'll use it to help me enhance my own nvim setup. Thanks for the share.

Re: Neovim 0.5 is overpowering

#429
post #394

Earlier quoted context omitted.

Don't worry, you're not alone. 100% of the people I've ever saw using Vim / Neovim spend much longer "calculating" their next command than they would spend just doing in with CMD-D in VSCode. It's frustrating to see. CMD-D in VSCode does 95% of what's needed, with no mental burden. But hey, you can't "brag" that you "know VIM" if you use VSCode...

> 100% of the people I've ever saw using Vim / Neovim spend much longer "calculating" their next command than they would spend just doing in with CMD-D in VSCode. Right, there is mental overhead to calculate moves but often times you can extract out patterns into intuitive key mappings once you've solved the problem once. For example, this is taken my vimrc: nnoremap s* :let @/='\ ').'\>' cgn xnoremap s* "sy:let @/=@…

You prove my point. You had to create this insane macro to solve something that cmd-d does automatically in VSCode. And cmd-d is much more versatile, since the same concept applies to many other use cases.

And sorry I say insane, but not knowing the language, your macro looks absolutely absurd and as obscure as a sample of brainf*ck.

I refuse to learn such a complicated language just to create a macro that replaces cmd-d and cmd-z, just so I can brag that I use Vim.

Post reply on HN