mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
refractor
This commit is contained in:
parent
fbe299a28c
commit
4842ca3540
23 changed files with 92 additions and 70 deletions
|
|
@ -37,5 +37,5 @@ return {
|
|||
-- "Neogit",
|
||||
-- },
|
||||
-- },
|
||||
{ import = "plugins.mod.neo-tree" },
|
||||
-- { import = "plugins.mod.neo-tree" },
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ return {
|
|||
{ import = "plugins.mod.toggleterm" },
|
||||
{ import = "plugins.mod.which-keys-nvim" },
|
||||
-- { import = "plugins.mod.copilot-lua" },
|
||||
-- { import = "plugins.mod.avante-nvim" },
|
||||
{ import = "plugins.mod.avante-nvim" },
|
||||
{
|
||||
"kawre/leetcode.nvim",
|
||||
build = ":TSUpdate html", -- if you have `nvim-treesitter` installed
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 = "" },
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue