Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

UPDATE: nvim paredit, ai stuff

+5 -80
+5 -80
nvim/lua/plugins.lua
··· 250 250 indent = { 251 251 enabled = true, 252 252 }, 253 - --filetypes = {"clojure", "fennel", "janet"}, 254 - keys = { 255 - ["<localleader>w"] = { 256 - function() 257 - -- place cursor and set mode to `insert` 258 - paredit.cursor.place_cursor( 259 - -- wrap element under cursor with `( ` and `)` 260 - paredit.wrap.wrap_element_under_cursor("( ", ")"), 261 - -- cursor placement opts 262 - { placement = "inner_start", mode = "insert" } 263 - ) 264 - end, 265 - "Wrap element insert head", 266 - }, 267 - 268 - ["<localleader>W"] = { 269 - function() 270 - paredit.cursor.place_cursor( 271 - paredit.wrap.wrap_element_under_cursor("(", ")"), 272 - { placement = "inner_end", mode = "insert" } 273 - ) 274 - end, 275 - "Wrap element insert tail", 276 - }, 277 - -- same as above but for enclosing form 278 - ["<localleader>i"] = { 279 - function() 280 - paredit.cursor.place_cursor( 281 - paredit.wrap.wrap_enclosing_form_under_cursor( 282 - "( ", ")"), 283 - { placement = "inner_start", mode = "insert" } 284 - ) 285 - end, 286 - "Wrap form insert head", 287 - }, 288 - ["<localleader>I"] = { 289 - function() 290 - paredit.cursor.place_cursor( 291 - paredit.wrap.wrap_enclosing_form_under_cursor( 292 - "(", ")"), 293 - { placement = "inner_end", mode = "insert" } 294 - ) 295 - end, 296 - "Wrap form insert tail", 297 - }, 298 - ["<localleader>["] = { 299 - function() 300 - paredit.cursor.place_cursor( 301 - paredit.wrap.wrap_enclosing_form_under_cursor( 302 - "[", "]"), 303 - { placement = "inner_start", mode = "insert" } 304 - ) 305 - end, 306 - }, 307 - ["<localleader>{"] = { 308 - function() 309 - paredit.cursor.place_cursor( 310 - paredit.wrap.wrap_enclosing_form_under_cursor( 311 - "{", "}"), 312 - { placement = "inner_end", mode = "insert" } 313 - ) 314 - end, 315 - }, 316 - }, 253 + filetypes = {"clojure", "fennel", "janet"}, 317 254 }) 318 255 end, 319 256 lazy = true, ··· 387 324 cmd = { "Lf" }, 388 325 dependencies = { "voldikss/vim-floaterm" } 389 326 }, 390 - -- SuperMaven, another AI coding tool 391 - --{ 392 - -- "supermaven-inc/supermaven-nvim", 393 - -- opts = { keymaps = { accept_suggestion = "<C-f>" } }, 394 - -- --lazy = true, 395 - -- priority = 10000, 396 - -- cmd = "SupermavenStart" 397 - --}, 398 327 { 399 328 "olimorris/codecompanion.nvim", 329 + dependencies = { 330 + "nvim-lua/plenary.nvim", 331 + "nvim-treesitter/nvim-treesitter", 332 + }, 400 333 opts = { 401 334 adapters = { 402 - ambient = function() 403 - return require("codecompanion.adapters").extend("openai_compatible", { 404 - env = { 405 - url = "http://34.46.152.76", 406 - chat_url = "/run-auction" 407 - } 408 - }) 409 - end, 410 335 ollama = function() 411 336 return require("codecompanion.adapters").extend("ollama", { 412 337 env = {