Skip to content

Commit 72c0967

Browse files
committed
chore: misc updates
1 parent 125b077 commit 72c0967

3 files changed

Lines changed: 21 additions & 12 deletions

File tree

.config/ghostty/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Aesthetics
2-
adjust-cell-height = 18
2+
adjust-cell-height = 21
33
font-family = "OperatorMono Nerd Font"
44
font-size = 21
55
font-style = "Medium"

.config/nvim-new/lua/keymaps.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,12 @@ end, { desc = "Select local scope" })
133133

134134
-- CodeCompanion
135135
keymap({ "n", "v" }, "<C-a>", "<cmd>CodeCompanionActions<CR>")
136-
keymap({ "n", "v" }, "<Leader>a", "<cmd>CodeCompanionChat Toggle<CR>")
136+
keymap({ "n", "v" }, "<Leader>a", function()
137+
if vim.o.columns < 100 then
138+
return require("codecompanion").toggle({ window_opts = { layout = "float", width = 1 } })
139+
end
140+
require("codecompanion").toggle()
141+
end, opts)
137142
keymap("v", "<LocalLeader>a", "<cmd>CodeCompanionChat Add<CR>")
138143

139144
-- Inline completions

.config/nvim-new/plugin/ai.lua

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,6 @@ require("codecompanion").setup({
131131
roles = {
132132
user = "olimorris",
133133
},
134-
mcp = {
135-
servers = {
136-
["tavily-mcp"] = {
137-
cmd = { "npx", "-y", "tavily-mcp@latest" },
138-
env = {
139-
TAVILY_API_KEY = "cmd:op read op://personal/Tavily_API/credential --no-newline",
140-
},
141-
},
142-
},
143-
},
144134
keymaps = {
145135
send = {
146136
modes = {
@@ -192,6 +182,20 @@ require("codecompanion").setup({
192182
fold_context = true,
193183
},
194184
},
185+
mcp = {
186+
enabled = false,
187+
servers = {
188+
["tavily-mcp"] = {
189+
cmd = { "npx", "-y", "tavily-mcp@latest" },
190+
env = {
191+
TAVILY_API_KEY = "cmd:op read op://personal/Tavily_API/credential --no-newline",
192+
},
193+
opts = {
194+
enabled = true,
195+
},
196+
},
197+
},
198+
},
195199
opts = {
196200
language = "British English",
197201
log_level = "INFO",

0 commit comments

Comments
 (0)