Hacker News new | ask | show | jobs
by freedomben 1033 days ago
I use copilot in neovim[1]. It was remarkably simple to get installed. Highly recommend

[1]: https://github.com/github/copilot.vim

1 comments

I do use that plugin actually; TPope is an absolute boss. The One missing feature I find myself moving to VSCode for that's not in the Vim plugin yet is the ability to open up an interactive chat session and ask:

"Please parse <dict name> and re-key it by <field>", making sure to remove entires where <x> is Blue and converting <y> to Yellow."

and it'll dump out a 40 line (working!) parser in ~3 seconds I can then further customize. It's honestly remarkable as you can then interactively ask it to update/adjust "Can you make that a reusable function where I pass in X,Y, and Z?" "Can you convert that to a tuple comprehension?", "Can you unroll that loop and add inline comments explaining the regex?" are all futher-drilldowns I'd use and expect good responses to.

I do have ShellGPT setup to give me (similar generic) responses in the terminal; but I haven't found a good way to let it see my code yet to let it parse my data structures as fluidly.

need to mod https://github.com/jackmort/chatgpt.nvim to use copilot or ollama
Alright - this looks amazing - thank you. I'm surprised I missed it, What's the best place to stay ontop of new/awesome neovim plugins? I admit to not having paid as much attention to /r/neovim as in past years after the recent api lockdown; but there has to be more o.0