omarchy-nvim: only suggest inline when an AI source can - #234
Open
nico93f wants to merge 1 commit into
Open
Conversation
LazyVim defaults vim.g.ai_cmp to true, which routes AI completions through
the completion menu and turns on blink.cmp's ghost text so the selected item
previews inline ahead of the cursor. Omarchy enables no AI extra --
lazyvim.json lists only editor.neo-tree -- so the sources are lsp, path,
snippets and buffer, and that inline preview spends its time writing words
already on screen back into the line being typed:
1 The constitutional convention met in Philadelphia.
2
3 Notes on constitutional
^^^^^^^^^^^^^^ typed "cons", the rest is ghosted from line 1
It is worst in prose. Writing a commit message or a markdown note, the buffer
guesses the rest of the word every few keystrokes and the eye follows it, for
a guess that carries no information the writer does not already have.
Turning ai_cmp off drops only that preview: the completion menu, its sources
and every keymap stay as they were. It is also the switch LazyVim's own AI
extras read -- copilot, supermaven and codeium set
suggestion.enabled = not vim.g.ai_cmp -- so enabling one of those extras
turns that provider's native inline suggestions on, still accepted with <Tab>
through LazyVim.cmp.actions.ai_accept. Inline suggestions when something can
genuinely predict the next words, none when nothing can.
pkgver moves to today's date, as with the other content changes here.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stock Omarchy ghosts words at you while you type, and there is nothing behind the guess.
LazyVim defaults
vim.g.ai_cmp = true, which routes AI completions through the completion menu and switches on blink.cmp's ghost text so the selected item previews inline. Omarchy enables no AI extra —lazyvim.jsonlists onlyeditor.neo-tree— so the sources arelsp,path,snippets,buffer, and the inline preview spends its time writing words already on screen back into the line you are typing.Typing
Notes on conson line 3, stockomarchy-nvim2026.8.13:With
vim.g.ai_cmp = false:The menu is untouched. Only the text that wrote itself ahead of the cursor is gone.
It is worst in prose. Writing a commit message, a note, a prompt in markdown, the buffer guesses the rest of the word every few keystrokes off nothing but the words already in the file, and the eye follows it every time.
Why this switch rather than turning ghost text off directly
ai_cmpis LazyVim's own flag for exactly this question. Its AI extras read it — copilot, supermaven and codeium all setsuggestion.enabled = not vim.g.ai_cmp— so with it off, a user who enables one of those extras gets that provider's native inline suggestions, still accepted with<Tab>throughLazyVim.cmp.actions.ai_accept. Inline suggestions when something can genuinely predict the next words; none when nothing can.Doesn't change
<Tab>,<CR>,<C-y>behaviourVerified
Built nothing — this is config. Ran stock
/etc/skel/.config/nvimand the patched copy side by side against the shipped plugin cache; the captures above aretmux capture-paneof those two sessions.require("blink.cmp.config").completion.ghost_text.enabled()returnstruebefore andfalseafter.Existing installs
~/.config/nvimis user-owned and/etc/skelonly seeds new users, so this reaches fresh installs only. Happy to follow up with a migration inbasecamp/omarchythat appends the line to an unmodifiedlua/config/options.lua, in the shape of1781587663.sh, if you want existing users covered.