get rid of remaining commented out cmp-ai bits

This commit is contained in:
Gered 2024-10-03 22:10:43 -04:00
parent d8a4c507c2
commit 51a36242ef

View file

@ -89,8 +89,6 @@ return {
} }
end, end,
}, },
-- { dir = '~/code/cmp-ai' },
}, },
config = function() config = function()
-- See `:help cmp` -- See `:help cmp`
@ -99,40 +97,6 @@ return {
local luasnip = require 'luasnip' local luasnip = require 'luasnip'
luasnip.config.setup {} luasnip.config.setup {}
-- local cmp_ai = require 'cmp_ai.config'
-- cmp_ai:setup {
-- provider_options = {
-- model = 'codellama:13b-code',
-- -- model = 'codellama:7b-code',
-- -- model = 'qwen2.5-coder:7b-base',
-- -- model = 'starcoder2:7b',
-- -- model = 'codestral:22b',
-- -- model = 'codegemma:7b-code',
-- base_url = os.getenv 'LLAMA_API_BASE' or 'http://localhost:8080/ollama',
-- api_key = os.getenv 'LLAMA_API_KEY',
-- options = {
-- stop = { '\n\n', '<EOT>' }, -- codellama
-- -- stop = { '<|endoftext|>' }, -- qwen-coder
-- -- stop = { '<file_sep>' }, -- starcoder2
-- -- stop = { '[INST]', '[/INST]', '[PREFIX]', '[MIDDLE]', '[SUFFIX]' }, -- codeestral
-- -- stop = { '<|fim_prefix|>', '<|fim_suffix|>', '<|fim_middle|>', '<|file_separator|>' }, -- codegemma
-- },
-- prompt = function(lines_before, lines_after)
-- return lines_before
-- -- return '<PRE> ' .. lines_before .. ' <SUF>' .. lines_after .. ' <MID>'
-- -- return '<fim_prefix>' .. lines_before .. '<fim_suffix>' .. lines_after .. '<fim_middle>'
-- -- return '<|fim_prefix|>' .. lines_before .. '<|fim_suffix|>' .. lines_after .. '<|fim_middle|>'
-- end,
-- suffix = function(lines_after)
-- return lines_after
-- end,
-- },
-- max_lines = 500,
-- run_on_every_keystroke = false,
-- notify = true,
-- }
-- vim.api.nvim_set_hl(0, 'CmpItemKindOllama', { fg = '#6cc644' })
cmp.setup { cmp.setup {
snippet = { snippet = {
expand = function(args) expand = function(args)
@ -205,14 +169,6 @@ return {
-- explicit keybinding for minuet-ai completions -- explicit keybinding for minuet-ai completions
['<C-x>'] = require('minuet').make_cmp_map(), ['<C-x>'] = require('minuet').make_cmp_map(),
-- ['<C-x>'] = cmp.mapping.complete {
-- config = {
-- sources = cmp.config.sources {
-- { name = 'cmp_ai' },
-- },
-- },
-- },
-- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see: -- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see:
-- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps -- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps
}, },