r/neovim•
No_Koala_3020

completion (locally hosted LLM autocomplete)

Plugin

https://reddit.com/link/1r9zvln/video/w7q1jf0rdokg1/player

I created a small plugin that is supposed to mimic Cursor Tab (but not as elegantly). It sends requests to a locally hosted LLM automatically and streams the response as virtual text. To accept the response you press <Tab> and to reject it, you start typing again or press <Esc>. This is just something small that i thought would be fun to create and could be somewhat useful.

Features:

  • Automatic startup and shutdown of the LLM server if hosting on the same machine (currently I have only used llama.cpp for hosting).
  • Uses Treesitter to gather code context in current buffer (lsp support may be nice to have in the future)
  • Automatic prompting depending on language specific triggers or cursor position.
  • Currently only supports lua and c# (adding other language support should be easy).

Would love to hear if you have any feed back on it!

Repo

Posted Feb 20, 2026, 4:24 PM UTC

31
Loading comments…