this post was submitted on 03 Nov 2024
21 points (88.9% liked)

Neovim

2199 readers
2 users here now

founded 2 years ago
MODERATORS
 

I'm generally skeptical of the hype around LLMs, but I've been manually working around this broken mapping for years. I don't think I could have found a solution easily just by googling.

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 1 month ago

LLMs work pretty well for narrowly-scoped questions like this.

[–] [email protected] 5 points 1 month ago

LLMs are also really good at generating regex based on a short description. It's saved me a bunch of time, since I don't use regex often enough to become proficient at it, but it's necessary for certain particular things (such as find/replace with Notepad++, or hyper-specific URIs in Bitwarden)

[–] Incblob 1 points 1 month ago (1 children)

May I ask why you don't use asterisk? That searches for the current word.

[–] [email protected] 1 points 1 month ago (1 children)

I'm using :Rg in the mapping, which calls ripgrep via fzf.vim, so it searches across all files in a project and gives me a preview of all the results.

[–] Incblob 1 points 1 month ago