nomnivore / ollama.nvim

A plugin for managing and integrating your ollama workflows in neovim.
MIT License
311 stars 22 forks source link

Update lualine integration docs #13

Closed tobocop2 closed 6 months ago

tobocop2 commented 6 months ago

@nomnivore I was not able to get lualine to display ollama status via the instructions in the README. I tried my best to adapt it but ultimately settled on this approach. This works well and I'm open to cleaning it up, but I figured this could save others some time.

Amusingly, i used this plugin with mistral to generate this code for me inline 😬

@nomnivore

nomnivore commented 6 months ago

Thanks for the PR!

The snippet I wrote assumes you already have lualine set up in your config, and that you are using a package manager that can merge configs like LazyVim (which I recommend, anyway).

However I do appreciate that not everyone is in this exact situation, and that's where your approach comes in handy, especially for users who would want all of their statusline config entries in one file.

Maybe we can reflect both approaches?

tobocop2 commented 6 months ago

@nomnivore updated the README to have both steps, thanks for reviewing