Add LlamaToggle command, hide completion info, and update README

- Add :LlamaToggle to enable/disable llama.vim completions without stopping server
- Disable inline timing/info display in llama.vim (show_info = 0)
- Add llama.cpp installation instructions to README

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
probalazs 2026-04-18 19:18:02 +02:00
parent bc020fba1a
commit d7b0ef21e4
3 changed files with 10 additions and 0 deletions

View File

@ -41,6 +41,11 @@ External Requirements:
- If you want to write Typescript, you need `npm` - If you want to write Typescript, you need `npm`
- If you want to write Golang, you will need `go` - If you want to write Golang, you will need `go`
- etc. - etc.
- [llama.cpp](https://github.com/ggml-org/llama.cpp) (optional, for local AI code completion via llama.vim)
- macOS: `brew install llama.cpp`
- Other platforms: see [llama.cpp installation](https://github.com/ggml-org/llama.cpp#installation)
- Start the server with: `:LlamaStart` inside Neovim (uses `qwen2.5` FIM model by default)
- Stop the server with: `:LlamaStop` (also stops automatically when Neovim exits)
> [!NOTE] > [!NOTE]
> See [Install Recipes](#Install-Recipes) for additional Windows and Linux specific notes > See [Install Recipes](#Install-Recipes) for additional Windows and Linux specific notes

View File

@ -225,6 +225,10 @@ vim.keymap.set('n', '<leader>sh', '<cmd>sp<CR>', { desc = '[S]plit [H]orizontal'
local llama_job_id = nil local llama_job_id = nil
vim.api.nvim_create_user_command('LlamaToggle', function()
vim.cmd 'call llama#toggle()'
end, { desc = 'Toggle llama.vim completion' })
vim.api.nvim_create_user_command('LlamaStart', function() vim.api.nvim_create_user_command('LlamaStart', function()
if llama_job_id then if llama_job_id then
vim.notify('llama-server is already running', vim.log.levels.WARN) vim.notify('llama-server is already running', vim.log.levels.WARN)

View File

@ -21,6 +21,7 @@ return {
ring_n_chunks = 64, -- more project context chunks ring_n_chunks = 64, -- more project context chunks
ring_chunk_size = 64, -- smaller chunks for speed ring_chunk_size = 64, -- smaller chunks for speed
ring_scope = 2048, -- wider scope around cursor ring_scope = 2048, -- wider scope around cursor
show_info = 0, -- disable inline timing/info display
} }
end, end,
}, },