mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-06-19 12:45:34 +00:00
Cleanup init.nvim and tweak ai models, aa alias to .gitconfig
This commit is contained in:
parent
e511802ea3
commit
3179a5b48d
|
@ -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", {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue