Created
January 21, 2025 16:40
-
-
Save milanglacier/49bc4a3648e923d1812f4785de6129f0 to your computer and use it in GitHub Desktop.
Minuet Config to work with ollama
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
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