Save my changes

This commit is contained in:
Peter Stuifzand 2024-02-23 11:39:29 +01:00
parent f4b9fef63c
commit f53551177c
No known key found for this signature in database
4 changed files with 63 additions and 15 deletions

View file

@ -1,6 +1,6 @@
return {
'github/copilot.vim',
config = function ()
vim.g.copilot_assume_mapped = true
end
-- 'github/copilot.vim',
-- config = function ()
-- vim.g.copilot_assume_mapped = true
-- end
}

View file

@ -0,0 +1,27 @@
return {
'huggingface/llm.nvim',
enabled = false,
opts = {
backend = 'ollama',
model = 'stable-code',
url = 'http://localhost:11434/api/generate',
tokens_to_clear = { '<EOT>' },
fim = {
enabled = true,
prefix = '<PRE> ',
middle = ' <MID>',
suffix = ' <SUF>',
},
context_window = 4096,
-- cf https://github.com/ollama/ollama/blob/main/docs/api.md#parameters
request_body = {
-- Modelfile options for the model you use
options = {
temperature = 0.2,
top_p = 0.95,
},
},
},
}