this post was submitted on 25 Jul 2024
128 points (99.2% liked)

Neovim

2161 readers
3 users here now

founded 1 year ago
MODERATORS
 

Based on answers to the following question:

Which development environments did you use regularly over the past year, and which do you want to work with over the next year? Please check all that apply.

Neovim is the most admired code editor in the 2024 Stacked Overflow Developer Survey

Source: https://survey.stackoverflow.co/2024/technology#admired-and-desired-new-collab-tools-desire-admire

you are viewing a single comment's thread
view the rest of the comments
[–] AVincentInSpace@pawb.social 2 points 3 months ago* (last edited 3 months ago) (3 children)

I don't know how to open that post on my instance so I can reply to it, but if you're willing to give it another shot, I figured out how to get indentexpr= to apply to all buffers from init.vim, using an auto command. Add this to your init.vim:

autocmd BufRead,BufNewFile,VimEnter * set indentexpr=
set indentexpr=
[–] ericjmorey@programming.dev 3 points 3 months ago (1 children)

You can get to the post using this link: https://threadiverse.link/lemmy.sdf.org/post/18253296

It's awesome that you were able to find a solution!

[–] AVincentInSpace@pawb.social 1 points 3 months ago

Thanks for this tip!

[–] ericjmorey@programming.dev 2 points 3 months ago

I think I found a more direct way. I'm still looking into the details though.

[–] ExtremeDullard@lemmy.sdf.org 2 points 3 months ago

Ah, thanks for your efforts, you're very kind. But I'm done with Neovim. It's already wasted more of my time that it was ever going to be worth.

I wanted to try Neovim to give Treesitter a spin. In the end, I went with something much simpler that works immediately and without drama in Vim and does what I really wanted all along: simple, dumb autocompletion.