Cleanup init.nvim and tweak ai models, aa alias to .gitconfig

This commit is contained in:
mitchell 2025-05-11 04:20:59 -04:00
parent e511802ea3
commit 3179a5b48d
2 changed files with 16 additions and 16 deletions

View file

@ -238,10 +238,6 @@ require("lazy").setup({
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
dependencies = { "saghen/blink.cmp" }, dependencies = { "saghen/blink.cmp" },
}, },
{
"pmizio/typescript-tools.nvim",
dependencies = { "nvim-lua/plenary.nvim", "neovim/nvim-lspconfig" },
},
-- Navigation and search -- Navigation and search
{ {
@ -422,14 +418,15 @@ require("lazy").setup({
display = { diff = { provider = "mini_diff" }, chat = { show_settings = true } }, display = { diff = { provider = "mini_diff" }, chat = { show_settings = true } },
strategies = { strategies = {
chat = { adapter = "gemini_deep" }, chat = { adapter = "gemini_deep" },
inline = { adapter = "gemini" }, inline = { adapter = "openai" },
cmd = { adapter = "gemini" }, cmd = { adapter = "openai_mini" },
}, },
adapters = { adapters = {
anthro = function() anthro = function()
return require("codecompanion.adapters").extend("anthropic", { return require("codecompanion.adapters").extend("anthropic", {
schema = { schema = {
model = { default = "claude-3-5-haiku-20241022" }, model = { default = "claude-3-7-sonnet-20250219" },
extended_thinking = { default = false },
}, },
}) })
end, end,
@ -454,14 +451,18 @@ require("lazy").setup({
}, },
}) })
end, end,
ollama = function() openai_mini = function()
return require("codecompanion.adapters").extend("ollama", { return require("codecompanion.adapters").extend("openai", {
env = {
url = "http://scimitar.lan:11434",
},
schema = { schema = {
model = { default = "deepseek-r1:7b" }, model = { default = "gpt-4.1-mini" },
num_ctx = { default = 8192 }, },
})
end,
openai_deep = function()
return require("codecompanion.adapters").extend("openai", {
schema = {
model = { default = "o4-mini-2025-04-16" },
reasoning_effort = { default = "high" },
}, },
}) })
end, end,
@ -486,7 +487,6 @@ vim.opt.wrap = false
vim.opt.cmdheight = 1 vim.opt.cmdheight = 1
vim.opt.shortmess:append("c") vim.opt.shortmess:append("c")
vim.opt.termguicolors = true vim.opt.termguicolors = true
vim.opt.foldenable = false
vim.opt.mouse = "a" vim.opt.mouse = "a"
vim.opt.mousemodel = "extend" vim.opt.mousemodel = "extend"
vim.opt.tabstop = 2 vim.opt.tabstop = 2
@ -572,7 +572,6 @@ local capabilities = require("blink.cmp").get_lsp_capabilities()
local lsp_flags = { debounce_text_changes = 150 } local lsp_flags = { debounce_text_changes = 150 }
-- Unused for now
local vue_plugin_location = vim.fn.expand("$HOME/.bun/install/global/node_modules/@vue/typescript-plugin") local vue_plugin_location = vim.fn.expand("$HOME/.bun/install/global/node_modules/@vue/typescript-plugin")
vim.lsp.config("ts_ls", { vim.lsp.config("ts_ls", {

View file

@ -22,6 +22,7 @@
merff = merge --ff-only merff = merge --ff-only
fa = fetch --all fa = fetch --all
ap = add --patch ap = add --patch
aa = add --all
[core] [core]
editor = nvim editor = nvim