|
Hi there, sorry for the noob question, but could someone clarify how i can toggle I'd like to disable it by default (configured as below), and be able to toggle this setting with a keybind. Configured in "ggml-org/llama.vim",
-- Disable auto FIM completion
init = function()
vim.g.llama_config = {
auto_fim = false,
}
end,I tried this keybind, but it's not working: -- Toggle auto FIM completion setting
vim.keymap.set('n', '<leader>ta', function()
vim.g.llama_config.auto_fim = not vim.g.llama_config.auto_fim
print('Auto FIM: ' .. tostring(vim.g.llama_config.auto_fim))
end, { desc = 'Toggle Auto FIM' })
Please advise, thank you! |
Answered by
Frefreak
Oct 28, 2025
Replies: 2 comments 7 replies
|
I do this function ToggleLlamaAutoFIM()
let g:llama_config.auto_fim = !g:llama_config.auto_fim
call llama#init()
endfunction
inoremap <silent><C-\> <ESC>:call ToggleLlamaAutoFIM()<CR>i |
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is a version with
vim.keymap.set