update config

This commit is contained in:
jay
2026-03-21 11:03:56 +08:00
parent d82b37376e
commit c2377c584e
4 changed files with 218 additions and 221 deletions
@@ -20,6 +20,8 @@ return {
javascript = {'{{ if .nvim.js_fixer }}{{ .nvim.js_fixer }}{{ else }}eslint{{ end }}'},
typescript = {'{{ if .nvim.js_fixer }}{{ .nvim.js_fixer }}{{ else }}eslint{{ end }}'},
zig = {'zigfmt'},
c = {'clang-format'},
sh = {'shfmt'},
}
g.ale_linters_explicit = 1
@@ -1,61 +0,0 @@
-- ai 助手套件
return {
"yetone/avante.nvim",
version = false,
lazy = true,
event = "VeryLazy",
opts = {
provider = "copilot",
ollama = {
model = "gemma3:4b",
endpoint = "http://127.0.0.1:11434",
timeout = 60000, -- Timeout in milliseconds
options = {
temperature = 0,
num_ctx = 10240,
keep_alive = "5m",
},
},
copilot = {
},
},
build = "make",
dependencies = {
"nvim-treesitter/nvim-treesitter",
"stevearc/dressing.nvim",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
--- 以下依赖项是可选的,
"echasnovski/mini.pick", -- 用于文件选择器提供者 mini.pick
"nvim-telescope/telescope.nvim", -- 用于文件选择器提供者 telescope
"hrsh7th/nvim-cmp", -- avante 命令和提及的自动完成
"ibhagwan/fzf-lua", -- 用于文件选择器提供者 fzf
"nvim-tree/nvim-web-devicons", -- 或 echasnovski/mini.icons
"zbirenbaum/copilot.lua", -- 用于 providers='copilot'
{
-- 支持图像粘贴
"HakonHarnes/img-clip.nvim",
event = "VeryLazy",
opts = {
-- 推荐设置
default = {
embed_image_as_base64 = false,
prompt_for_file_name = false,
drag_and_drop = {
insert_mode = true,
},
-- Windows 用户必需
use_absolute_path = true,
},
},
},
{
-- 如果您有 lazy=true,请确保正确设置
'MeanderingProgrammer/render-markdown.nvim',
opts = {
file_types = { "markdown", "Avante" },
},
ft = { "markdown", "Avante" },
},
},
}