this post was submitted on 22 Jun 2023
33 points (100.0% liked)

Neovim

496 readers
1 users here now

Neovim is a modal text editor forked off of Vim in 2014. Being modal means that you do not simply type text on screen, but the behavior and functionality of the editor changes entirely depending on the mode.

The most common and most used mode, the "normal mode" for Neovim is to essentially turn your keyboard in to hotkeys with which you can navigate and manipulate text. Several modes exist, but two other most common ones are "insert mode" where you type in text directly as if it was a traditional text editor, and "visual mode" where you select text.

Neovim seeks to enable further community participation in its development and to make drastic changes without turning it in to something that is "not Vim". Neovim also seeks to enable embedding the editor within GUI applications.

The Neovim logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.

founded 3 years ago
MODERATORS
 

I've been absolutely loving treesitter. It's come a long way and it's been absolutely great for things like folds, motions, highlights of course. Now that I've finally gotten familiar with writing my own queries I can extend the existing plugins. As an example I've added folds to blocks of multiple consecutive comments in JS and Ruby.

What are some of your favorites?

top 11 comments
sorted by: hot top controversial new old
[–] gelert 5 points 1 year ago

There are others, but I like all of these:

[–] [email protected] 4 points 1 year ago (1 children)

I made a similar post on my home instance.

The big ones from that are CoQ (fast as fuck autocompletion using neovim's builtin lsp) it's artifacts for commonly snippets and ChadTree (nerdtree replacement made by the same person) I rely on both way more than I'd like to admit and they take neovim from a nice text editor to something that can rival any IDE for me.

[–] yads 1 points 1 year ago

Hmm I'm going to have to check coq out. I never bothered with it just because of built-in lsp, but if it's much faster I definitely want to try it.

[–] reallychris 4 points 1 year ago* (last edited 1 year ago) (1 children)

well, i eschewed motion plugins for so long, but i recently installed easy motion, to quote "maybe use it minimally so i don't have to change my work flow too much". i pretty much gave up using w, e, b and f within a day of installing it, replacing each of them with a more efficient reach for the same number of key presses. similar situation with ultisnips, thinking it'd be overkill for my needs. in other words i was worried it would save me TOO MUCH time pffft. these both work really well with opening zsh commands in $editor too.

[–] yads 2 points 1 year ago (1 children)

Someone else in the thread recommended pounce as well for that. I actually used to have hop installed, but I just never would use it. The default motions seem sufficient for me.

[–] reallychris 1 points 1 year ago

easy motion was the first one i looked at and honestly i'm scared to look at the others in case i fall down yet another rabbit hole.

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago) (1 children)

My favorite plugins:

  • telescope (file searching, diagnostic listing...)
  • vim-surround
  • vim-signify

I use a couple others, but those are really important to my workflow.

[–] yads 1 points 1 year ago

I just switched to nvim-surround for the treesitter support. The only thing that I miss from vim-surround is that it leaves blank lines if you remove braces on some code that looks like:

{
  foo: 'bar',
  ...
}
[–] [email protected] 2 points 1 year ago (1 children)

Ultilsnips (I might change to LuaSnips sometime in the future) and VimTeX. I would blame those as the ones that really got me into Neovim.

[–] [email protected] 1 points 1 year ago

I second this. Can someone get the vimtex creator out here (r/verlag I believe). He is a great presence on the Reddit boards.

[–] [email protected] 2 points 1 year ago

I think that my favorite is noice.nvim. I like the looks it makes :)

load more comments
view more: next ›