update: update flake.lock

This commit is contained in:
js0ny 2025-11-21 22:25:36 +00:00
parent 57bee38531
commit a2a1d02c4e
10 changed files with 100 additions and 79 deletions

View file

@ -13,9 +13,9 @@ local M = {
}
-- stylua: ignore end
local function smart_split(func)
local function smart_split(func, reverse)
local width = vim.api.nvim_win_get_width(0)
if width > 80 then
if width > 80 and not reverse then
vim.api.nvim_command("vsp")
else
vim.api.nvim_command("sp")
@ -28,7 +28,7 @@ vim.keymap.set("n", "<C-w>d", function()
end, { desc = "Go to Definition (Smart Split)" })
vim.keymap.set("n", "<C-w>D", function()
smart_split(vim.lsp.buf.declaration)
smart_split(vim.lsp.buf.declaration, true)
end, { desc = "Go to Declaration (Smart Split)" })
return M

View file

@ -15,7 +15,13 @@ return {
openrouter = {
__inherited_from = "openai",
endpoint = "https://openrouter.ai/api/v1",
model = "openai/gpt-5.1-codex",
model = "anthropic/claude-sonnet-4.5",
model_names = {
"openai/gpt-5.1-codex",
"google/gemini-3-pro-preview",
"anthropic/claude-sonnet-4.5",
"x-ai/grok-code-fast-1",
},
api_key_name = "OPENROUTER_API_KEY",
},
},