Skip to content

Ollama and #buffers #85

Answered by olimorris
fredrikaverpil asked this question in Q&A
Aug 3, 2024 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

Hey @fredrikaverpil. Thanks for your kind words.

There may be a few nuances with #buffers I should have made users aware of. It will only share buffers that are of the same filetype as the buffer you originated the chat from. My logic was it stops things like large markdown being sent over to the LLM when I only care about fellow Lua or Python files for example. Also, it uses nvim_buf_is_valid to check that a buffer exists and has not been unloaded or deleted. Just because a buffer is listed may not mean it's loaded.

Are these constraints stopping it from working for you?

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@fredrikaverpil
Comment options

@olimorris
Comment options

@fredrikaverpil
Comment options

@fredrikaverpil
Comment options

@olimorris
Comment options

Answer selected by fredrikaverpil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants