rewriting my neovim config with LLMs
I rebuilt my Neovim config from scratch a little over a month ago, because my work repo was constantly crashing my TSGO LSP server. The repo structure is a bit of a mess, so I didn’t think there was anything wrong with my set up. But after attempting to increase memory and changing various flags over weeks, it still wouldn’t work properly, I decided to bite the bullet and start afresh.
I initially thought I’ll save my list of old plugins and then selectively bring them back as I find myself missing functionality or features, but as it turned out, I actually didn’t need 90% of them. Plus, whatever features I did miss, I got Opus to write some custom code to implement it just the way I want it[1]. A good example is my custom plugin called “LLM ask” which let’s me pass a bunch of selected lines or the whole file as context, and ask questions via my chosen harness. I’m sure there is a plugin that let’s me do this, but I don’t want all the extra cruft that comes along with it.
The only plugins I brought back were some handpicked modules of Snacks and Mini, Flash, Noice, Incline, and Modicator (which I’m considering replacing with some autocommands). The remaining eight plugins are all custom LLM-rolled.
I wasn’t too optimistic about the LSP though, but it now works flawlessly. I still haven’t figured out what it was in my old config that was causing the constant crashing, but I was finally able to work in my editor again. I’m still careful about adding a new custom plugin for everything, but there are some interesting ones that I’ve set up for myself that I might release eventually[2].
Of course they’re not absolutely unique in their functionality or UI. In fact, they’re highly derivative, from existing plugins or what I’ve seen other people post on the r/neovim subrreddit. But they’re (theoretically) significantly lighter because it has nothing other than exactly the bit I want. ↩︎
I’ve also considered just releasing the spec and letting people build it for themselves either by hand or via an LLM. I don’t want to be the maintainer of an AI-slop plugin, but maybe the idea is useful for someone. ↩︎