[nvim] codecompanion removed, added starpls
This commit is contained in:
@@ -3,7 +3,7 @@ require("mason-lspconfig").setup({
|
||||
ensure_installed = {
|
||||
'lua_ls',
|
||||
'gopls',
|
||||
'bashls',
|
||||
'bashls', -- install "shfmt" binary for formatting capabilities
|
||||
'basedpyright',
|
||||
},
|
||||
automatic_installation = true,
|
||||
@@ -73,3 +73,4 @@ vim.lsp.enable("lua_ls")
|
||||
vim.lsp.enable("bashls")
|
||||
vim.lsp.enable("gopls")
|
||||
vim.lsp.enable("basedpyright")
|
||||
vim.lsp.enable("starpls")
|
||||
|
||||
@@ -1,37 +1,37 @@
|
||||
require("codecompanion").setup({
|
||||
strategies = {
|
||||
chat = {
|
||||
adapter = "deepseek",
|
||||
},
|
||||
inline = {
|
||||
adapter = "deepseek",
|
||||
},
|
||||
cmd = {
|
||||
adapter = "deepseek",
|
||||
}
|
||||
},
|
||||
adapters = {
|
||||
deepseek = function()
|
||||
return require("codecompanion.adapters").extend("deepseek", {
|
||||
env = {
|
||||
api_key = (function()
|
||||
local path = os.getenv("HOME") .. "/.config/deepseek_api_key"
|
||||
local file = io.open(path, "r")
|
||||
if not file then
|
||||
vim.notify("Deepseek API key not found at " .. path, vim.log.levels.WARN)
|
||||
return nil
|
||||
end
|
||||
local content = file:read("*a"):gsub("%s+", "")
|
||||
file:close()
|
||||
return content
|
||||
end)(),
|
||||
},
|
||||
schema = {
|
||||
model = {
|
||||
default = "deepseek-chat",
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
})
|
||||
-- require("codecompanion").setup({
|
||||
-- strategies = {
|
||||
-- chat = {
|
||||
-- adapter = "deepseek",
|
||||
-- },
|
||||
-- inline = {
|
||||
-- adapter = "deepseek",
|
||||
-- },
|
||||
-- cmd = {
|
||||
-- adapter = "deepseek",
|
||||
-- }
|
||||
-- },
|
||||
-- adapters = {
|
||||
-- deepseek = function()
|
||||
-- return require("codecompanion.adapters").extend("deepseek", {
|
||||
-- env = {
|
||||
-- api_key = (function()
|
||||
-- local path = os.getenv("HOME") .. "/.config/deepseek_api_key"
|
||||
-- local file = io.open(path, "r")
|
||||
-- if not file then
|
||||
-- vim.notify("Deepseek API key not found at " .. path, vim.log.levels.WARN)
|
||||
-- return nil
|
||||
-- end
|
||||
-- local content = file:read("*a"):gsub("%s+", "")
|
||||
-- file:close()
|
||||
-- return content
|
||||
-- end)(),
|
||||
-- },
|
||||
-- schema = {
|
||||
-- model = {
|
||||
-- default = "deepseek-chat",
|
||||
-- },
|
||||
-- },
|
||||
-- })
|
||||
-- end,
|
||||
-- },
|
||||
-- })
|
||||
|
||||
@@ -24,9 +24,9 @@ local plugins = {
|
||||
-- ...
|
||||
})
|
||||
|
||||
-- vim.cmd('colorscheme github_light_colorblind')
|
||||
vim.cmd('colorscheme github_light_colorblind')
|
||||
-- vim.cmd('colorscheme github_light')
|
||||
vim.cmd('colorscheme github_dark_colorblind')
|
||||
-- vim.cmd('colorscheme github_dark_colorblind')
|
||||
-- vim.cmd('colorscheme github_dark')
|
||||
end,
|
||||
},
|
||||
@@ -79,14 +79,14 @@ local plugins = {
|
||||
-- Your setup opts here
|
||||
},
|
||||
},
|
||||
{
|
||||
"olimorris/codecompanion.nvim",
|
||||
opts = {},
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
},
|
||||
-- {
|
||||
-- "olimorris/codecompanion.nvim",
|
||||
-- opts = {},
|
||||
-- dependencies = {
|
||||
-- "nvim-lua/plenary.nvim",
|
||||
-- "nvim-treesitter/nvim-treesitter",
|
||||
-- },
|
||||
-- },
|
||||
{
|
||||
"yetone/avante.nvim",
|
||||
build = vim.fn.has("win32") ~= 0
|
||||
@@ -97,13 +97,28 @@ local plugins = {
|
||||
---@module 'avante'
|
||||
---@type avante.Config
|
||||
opts = {
|
||||
provider = "yadeepseek",
|
||||
provider = "yaqwencode",
|
||||
providers = {
|
||||
yadeepseek = {
|
||||
__inherited_from = "openai",
|
||||
api_key_name = "cmd:cat ~/.config/eliza_api_key",
|
||||
endpoint = "https://api.eliza.yandex.net/raw/internal/deepseek/v1",
|
||||
model = "deepseek-0324",
|
||||
use_ReAct_prompt = true,
|
||||
},
|
||||
yaqwencode = {
|
||||
__inherited_from = "openai",
|
||||
api_key_name = "cmd:cat ~/.config/eliza_api_key",
|
||||
endpoint = "https://api.eliza.yandex.net/raw/internal/qwen3-coder-480b-a35b-runtime/v1",
|
||||
model = "qwen3-coder-480b-a35b-runtime",
|
||||
use_ReAct_prompt = true,
|
||||
},
|
||||
yaclaude = {
|
||||
__inherited_from = "openai",
|
||||
api_key_name = "cmd:cat ~/.config/eliza_api_key",
|
||||
endpoint = "https://api.eliza.yandex.net/raw/anthropic/v1",
|
||||
model = "claude-opus-4-5-20251101",
|
||||
-- use_ReAct_prompt = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -131,4 +146,4 @@ vim.cmd([[
|
||||
require("plugins/telescope")
|
||||
require("plugins/completions")
|
||||
require("plugins/gitsigns")
|
||||
require("plugins/codecompanion")
|
||||
-- require("plugins/codecompanion")
|
||||
|
||||
Reference in New Issue
Block a user