this post was submitted on 03 Nov 2024
19 points (91.3% liked)

Neovim

2161 readers
3 users here now

founded 1 year 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 8 comments
sorted by: hot top controversial new old
[–] Incblob@lemmy.world 1 points 6 days ago (1 children)

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

[–] brianpeiris@lemmy.ca 1 points 5 days 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@lemmy.world 1 points 5 days ago
[–] ChairmanMeow@programming.dev 5 points 1 week ago

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

[–] Nawor3565@lemmy.blahaj.zone 5 points 1 week 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)

[–] tristan957@fosstodon.org 2 points 1 week ago (1 children)

@brianpeiris isn't this what the * map does? I may not understand the difference.

[–] brianpeiris@lemmy.ca 4 points 1 week ago (1 children)

I'm using :Rg here, which calls ripgrep to perform a search across all files in a directory. So it's not just a search within a single buffer.

[–] tristan957@fosstodon.org 3 points 1 week ago

@brianpeiris thanks for the explanation!