File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Aesthetics
2- adjust-cell-height = 18
2+ adjust-cell-height = 21
33font-family = "OperatorMono Nerd Font"
44font-size = 21
55font-style = "Medium"
Original file line number Diff line number Diff line change @@ -133,7 +133,12 @@ end, { desc = "Select local scope" })
133133
134134-- CodeCompanion
135135keymap ({ " 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 )
137142keymap (" v" , " <LocalLeader>a" , " <cmd>CodeCompanionChat Add<CR>" )
138143
139144-- Inline completions
Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments