Use FIM based on LSP #3

Open
opened 2026-06-01 12:38:25 +02:00 by EHER · 0 comments
Owner

Current State

Autocomplete is handled by minuet-ai.nvim
(https://github.com/milanglacier/minuet-ai.nvim) via nvim-cmp, using
a custom openai_fim_compatible provider pointed at Ollama or
OpenRouter. While functional, this is a plugin-specific approach tied
to the nvim-cmp ecosystem.

Proposal

Replace Minuet with an LSP-based FIM solution:

LSP 3.18 includes native support for inline completion via
textDocument/inlineCompletion, making this the open standard for AI
autocomplete across editors.

Benefits

  • Standard protocol: same approach works in any LSP-compatible editor
  • Backend flexibility: swap between Ollama and OpenRouter in one
    place
  • Separation of concerns: autocomplete (LSP) and agent (ACP via
    CodeCompanion) use independent, replaceable layers
  • Less coupling: removes dependency on nvim-cmp for AI completions

References

  • PR #2 — tweaking Minuet config (the motivation for this issue)
  • LSP 3.18 textDocument/inlineCompletion spec
Current State Autocomplete is handled by minuet-ai.nvim (https://github.com/milanglacier/minuet-ai.nvim) via nvim-cmp, using a custom openai_fim_compatible provider pointed at Ollama or OpenRouter. While functional, this is a plugin-specific approach tied to the nvim-cmp ecosystem. Proposal Replace Minuet with an LSP-based FIM solution: - llm-ls (https://github.com/huggingface/llm-ls) — LSP server for FIM completions, supports any OpenAI-compatible endpoint (Ollama, OpenRouter) - llm.nvim (https://github.com/huggingface/llm.nvim) — Neovim plugin that connects to llm-ls LSP 3.18 includes native support for inline completion via textDocument/inlineCompletion, making this the open standard for AI autocomplete across editors. Benefits - Standard protocol: same approach works in any LSP-compatible editor - Backend flexibility: swap between Ollama and OpenRouter in one place - Separation of concerns: autocomplete (LSP) and agent (ACP via CodeCompanion) use independent, replaceable layers - Less coupling: removes dependency on nvim-cmp for AI completions References - PR #2 — tweaking Minuet config (the motivation for this issue) - LSP 3.18 textDocument/inlineCompletion spec
EHER added this to the Kanban project 2026-06-01 12:38:25 +02:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: EHER/nuVim#3
No description provided.