David-Kunz / gen.nvim

Neovim plugin to generate text using LLMs with customizable prompts
The Unlicense
992 stars 64 forks source link

Telescope integration #34

Closed dj95 closed 8 months ago

dj95 commented 8 months ago

Hey,

first of all thanks for the awesome plugin! It's really fun to tinker around with ollama within neovim.

I've created an extension for telescope to select the prompt with fuzzy search. Are you interested in a pull request that adds the extension directly to gen.nvim?

Here's the repo for the extension: https://github.com/dj95/telescope-gen.nvim

And here's a short demo.

https://github.com/David-Kunz/gen.nvim/assets/4348959/ef9975d4-b14f-46bd-8c09-d48fb3f835ac

David-Kunz commented 8 months ago

Hi @dj95 ,

Thank you for this suggestion and your extension! This already works out of the box with https://github.com/nvim-telescope/telescope-ui-select.nvim since gen.nvim just uses vim.ui.select under the hood.

What do you think?

Thank you and best regards, David

dj95 commented 8 months ago

Hi @David-Kunz ,

this sounds great! Never heard of it, tbh. But it definitively holds the maintenance load of the telescope integration out of the project. Migrated to it right now.

Thanks for pointing it out!