refractor

This commit is contained in:
js0ny 2025-10-29 23:27:12 +00:00
parent fbe299a28c
commit 4842ca3540
23 changed files with 92 additions and 70 deletions

View file

@ -6,14 +6,11 @@ return {
opts = {
-- add any opts here
-- for example
provider = "openai",
openai = {
endpoint = "https://aihubmix.com/v1",
model = "claude-3-7-sonnet-20250219", -- your desired model (or use gpt-4o, etc.)
timeout = 30000, -- timeout in milliseconds
temperature = 0, -- adjust if needed
max_tokens = 4096,
-- reasoning_effort = "high" -- only supported for "o" models
providers = {
openai = {
endpoint = "https://openrouter.ai/v1",
model = "x-ai/grok-code-fast-1",
},
},
},
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
@ -27,9 +24,9 @@ return {
--- The below dependencies are optional,
-- "nvim-telescope/telescope.nvim", -- for file_selector provider telescope
"ibhagwan/fzf-lua",
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
"zbirenbaum/copilot.lua", -- for providers='copilot'
"zbirenbaum/copilot.lua", -- for providers='copilot'
"HakonHarnes/img-clip.nvim",
},
}

View file

@ -14,7 +14,7 @@ Remote | Git Branch | Diagnostics | Command | | MID | | Line:Column | Indent | E
local config = {
options = {
disabled_filetypes = {
statusline = { "NvimTree", "alpha", "grug-far", "snacks_dashboard" },
statusline = { "NvimTree", "alpha", "grug-far", "snacks_dashboard", "Avante", "AvanteInput" },
},
-- Disable sections and component separators
component_separators = { left = "", right = "" },

View file

@ -71,14 +71,15 @@ return {
},
},
-- stylua: ignore end
-- explorer = {
-- },
explorer = {
enabled = true,
},
indent = { enabled = true },
input = { enabled = true },
notifier = { enabled = true },
quickfile = { enabled = true },
scope = { enabled = true },
scroll = { enabled = true },
scroll = { enabled = false },
statuscolumn = { enabled = true },
-- words = { enabled = true },
image = {
@ -88,12 +89,12 @@ return {
},
},
keys = {
-- {
-- "<leader>ft",
-- function()
-- require("snacks").explorer()
-- end,
-- desc = "Toggle File Explorer",
-- },
{
"<leader>ft",
function()
require("snacks").explorer()
end,
desc = "Toggle File Explorer",
},
},
}