removed ai features

This commit is contained in:
pika 2025-02-14 22:17:55 +01:00
parent e09db01e4b
commit 8ac4504621

View file

@ -69,7 +69,7 @@ return {
{ name = "luasnip" }, -- snippets { name = "luasnip" }, -- snippets
{ name = "buffer" }, -- text within current buffer { name = "buffer" }, -- text within current buffer
{ name = "path" }, -- file system paths { name = "path" }, -- file system paths
{ name = "cmp_ai" }, -- AI completion -- { name = "cmp_ai" }, -- AI completion
}), }),
-- configure lspkind for vs-code like pictograms in completion menu -- configure lspkind for vs-code like pictograms in completion menu
formatting = { formatting = {
@ -91,49 +91,49 @@ return {
end, end,
}, },
{ -- {
-- ─< for ai use >────────────────────────────────────────────────────────────────────── -- -- ─< for ai use >──────────────────────────────────────────────────────────────────────
"tzachar/cmp-ai", -- "tzachar/cmp-ai",
dependencies = { -- dependencies = {
"hrsh7th/nvim-cmp", -- "hrsh7th/nvim-cmp",
"tzachar/cmp-ai", -- "tzachar/cmp-ai",
}, -- },
--
config = function() -- config = function()
local cmp = require("cmp") -- local cmp = require("cmp")
local cmp_ai = require("cmp_ai.config") -- local cmp_ai = require("cmp_ai.config")
--
-- Setup cmp-ai configuration -- -- Setup cmp-ai configuration
cmp_ai:setup({ -- cmp_ai:setup({
max_lines = 100, -- max_lines = 100,
provider = "Ollama", -- provider = "Ollama",
-- -- provider_options = {
-- -- model = "codellama:7b-code",
-- -- auto_unload = false,
-- -- raw_response_cb = function(response)
-- -- vim.notify(vim.inspect(response))
-- -- vim.g.ai_raw_response = response
-- -- end,
-- -- },
-- provider_options = { -- provider_options = {
-- model = "codellama:7b-code", -- model = "qwen2.5-coder:7b-base-q6_K",
-- auto_unload = false, -- prompt = function(lines_before, lines_after)
-- return "<|fim_prefix|>" .. lines_before .. "<|fim_suffix|>" .. lines_after .. "<|fim_middle|>"
-- end,
-- raw_response_cb = function(response) -- raw_response_cb = function(response)
-- vim.notify(vim.inspect(response)) -- vim.notify(vim.inspect(response))
-- vim.g.ai_raw_response = response -- vim.g.ai_raw_response = response
-- end, -- end,
-- }, -- },
provider_options = { -- notify = true,
model = "qwen2.5-coder:7b-base-q6_K", -- notify_callback = function(msg)
prompt = function(lines_before, lines_after) -- vim.notify(msg)
return "<|fim_prefix|>" .. lines_before .. "<|fim_suffix|>" .. lines_after .. "<|fim_middle|>" -- end,
end, -- run_on_every_keystroke = true,
raw_response_cb = function(response) -- ignored_file_types = {
vim.notify(vim.inspect(response)) -- txt = true,
vim.g.ai_raw_response = response -- },
end, -- })
}, -- end,
notify = true, -- },
notify_callback = function(msg)
vim.notify(msg)
end,
run_on_every_keystroke = true,
ignored_file_types = {
txt = true,
},
})
end,
},
} }