Skip to content

Instantly share code, notes, and snippets.

@milanglacier
Created January 21, 2025 16:40
Show Gist options
  • Save milanglacier/49bc4a3648e923d1812f4785de6129f0 to your computer and use it in GitHub Desktop.
Save milanglacier/49bc4a3648e923d1812f4785de6129f0 to your computer and use it in GitHub Desktop.
Minuet Config to work with ollama
require('minuet').setup {
virtualtext = {
auto_trigger_ft = {},
keymap = {
-- accept whole completion
accept = '<A-A>',
-- accept one line
accept_line = '<A-a>',
-- accept n lines (prompts for number)
accept_n_lines = '<A-z>',
-- Cycle to prev completion item, or manually invoke completion
prev = '<A-[>',
-- Cycle to next completion item, or manually invoke completion
next = '<A-]>',
dismiss = '<A-e>',
},
},
provider = 'openai_fim_compatible',
provider_options = {
openai_fim_compatible = {
api_key = 'TERM', -- Please Don't change this, just use TERM should be fine.
name = 'Ollama',
end_point = 'http://localhost:11434/v1/completions',
model = 'qwen2.5-coder:14b',
optional = {
max_tokens = 256,
top_p = 0.9,
},
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment