Live data from Hacker News

Neovim v0.5

github.com

61–70 of 213 posts

Re: Neovim v0.5

#61
post #21

Could someone sell me on why I should switch to this from regular Vim?

One friend tried to switch from neovim to vim and found that vim is slower even if everything works. Otherwise no reason to switch.

Re: Neovim v0.5

#62

My heart is with vim but I switched to emacs as I love orgmode too much for note taking. I tried a few vim orgmode plugins but they seemed quite flakey even though I only really use orgmode for outlining. Excuse my ignorance but could all this LSP/Lua stuff allow neovim to take over from emacs?

I’d say cautiously maybe. Using lua to me seems like it could open doors for neovim that before we’re either not possible or very complicated to do with vimscript.

Neovim doesn’t have such incredible and almost ridiculous power to change itself like emacs does with elisp since vim is still not written in lua, lua is just used to access its api, but that api is quite extensive. So, maybe? Hopefully?

Re: Neovim v0.5

#63
post #21

Could someone sell me on why I should switch to this from regular Vim?

lots of stuff. but mainly: * ease of getting started. nvim is just vim, you can bring over your vim config and it'll just work. * integrated lsp. you could have vscode like auto completion natively * tree-sitter. google it to believe it and much, much more

> tree-sitter. google it to believe it

After Googling I have no idea what it is, it's a parser but for what? Syntax highlighting? That doesn't seem so impressive

Re: Neovim v0.5

#65
I'm using neovim with Coc (often does not work as I want it to) and ALE and friends, and it's getting sort of frustrating. It's lots of fiddling with the vimrc, each year a new better extension that I can never make work, etc. What I'd like is some editor that integrates LSP, treesitter, FZF and friends so I don't have to configure everything, while still having the modal+command model of vim. Recently there was an editor that seemed to fit the bill (I think called Hex), but it seems those "keyboard oriented" editors are more usually "american keyboard oriented", in that the bindings don't make sense for non qwerty keyboards, and remapping everything is frustrating. Essentially, I think I want an full-featured IDE with vim's extensibility and modal approach.

What's the solution?

Re: Neovim v0.5

#66
post #21

Could someone sell me on why I should switch to this from regular Vim?

To me, there are two big things:

1. Development model (vim=Bram, neovim=communitiy of people) 2. Movement to a more accessible language for writing plugins

Re: Neovim v0.5

#68
post #19

Is anybody else uncomfortable about the idea that an LSP client is now baked into the editor (as opposed to being a plugin)? Are there big performance gains to this approach? While LSP is great, it basically came from nowhere in the last couple of years. My concern: what if something definitively better comes along in another couple years, and we're "stuck" with this baked into the editor? For context, using ALE, I'v…

It's not enabled by default, you have to install language servers and turn them on one by one.

And given the extensible core of neovim, if a better LSP-like system comes along someone will build a plugin to integrate it. Before this native LSP support there was (and still is) an excellent vim/neovim addon coc.nvim that adds LSP support using nodejs as a process manager for example.

LSP is very anti-monolith by design. Each language has its own little microservice LSP server that communicates to the editor using json-rpc. Everything can be swapped out and replaced dynamically--nothing is linked together or a direct dependency.

Re: Neovim v0.5

#69

I'm using neovim with Coc (often does not work as I want it to) and ALE and friends, and it's getting sort of frustrating. It's lots of fiddling with the vimrc, each year a new better extension that I can never make work, etc. What I'd like is some editor that integrates LSP, treesitter, FZF and friends so I don't have to configure everything, while still having the modal+command model of vim. Recently there was an e…

I've been really hopefull it's onivim. I suspect you'll have the same issue with default bindings unfortunately.

Re: Neovim v0.5

#70
post #42

Earlier quoted context omitted.

To clarify for people unfamiliar, all of that is common to Vim and Neovim except maybe visual regex - what is that?

Tbh, that’s how I call it but it’s just having incremental search enabled. That will highlight search/replace matches and the using s/ / That allows me to see what my regex matches. So I can start typing ^d*\. Hello and that would match any start of line digit followed by a dot and the word hello. I still have a lot to learn there but just that has been incredibly useful for me. Hope that makes sense

Yes, thanks. That's not what I thought you meant, but it suggests a great idea: Something that gives visual feedback as you construct regexes. I'm not sure that incremental search isn't sufficient, however.
Post reply on HN