diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua index c5f3592..92d0364 100644 --- a/nvim/lua/plugins.lua +++ b/nvim/lua/plugins.lua @@ -250,70 +250,7 @@ require("lazy").setup({ indent = { enabled = true, }, - --filetypes = {"clojure", "fennel", "janet"}, - keys = { - ["w"] = { - function() - -- place cursor and set mode to `insert` - paredit.cursor.place_cursor( - -- wrap element under cursor with `( ` and `)` - paredit.wrap.wrap_element_under_cursor("( ", ")"), - -- cursor placement opts - { placement = "inner_start", mode = "insert" } - ) - end, - "Wrap element insert head", - }, - - ["W"] = { - function() - paredit.cursor.place_cursor( - paredit.wrap.wrap_element_under_cursor("(", ")"), - { placement = "inner_end", mode = "insert" } - ) - end, - "Wrap element insert tail", - }, - -- same as above but for enclosing form - ["i"] = { - function() - paredit.cursor.place_cursor( - paredit.wrap.wrap_enclosing_form_under_cursor( - "( ", ")"), - { placement = "inner_start", mode = "insert" } - ) - end, - "Wrap form insert head", - }, - ["I"] = { - function() - paredit.cursor.place_cursor( - paredit.wrap.wrap_enclosing_form_under_cursor( - "(", ")"), - { placement = "inner_end", mode = "insert" } - ) - end, - "Wrap form insert tail", - }, - ["["] = { - function() - paredit.cursor.place_cursor( - paredit.wrap.wrap_enclosing_form_under_cursor( - "[", "]"), - { placement = "inner_start", mode = "insert" } - ) - end, - }, - ["{"] = { - function() - paredit.cursor.place_cursor( - paredit.wrap.wrap_enclosing_form_under_cursor( - "{", "}"), - { placement = "inner_end", mode = "insert" } - ) - end, - }, - }, + filetypes = {"clojure", "fennel", "janet"}, }) end, lazy = true, @@ -387,26 +324,14 @@ require("lazy").setup({ cmd = { "Lf" }, dependencies = { "voldikss/vim-floaterm" } }, - -- SuperMaven, another AI coding tool - --{ - -- "supermaven-inc/supermaven-nvim", - -- opts = { keymaps = { accept_suggestion = "" } }, - -- --lazy = true, - -- priority = 10000, - -- cmd = "SupermavenStart" - --}, { "olimorris/codecompanion.nvim", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-treesitter/nvim-treesitter", + }, opts = { adapters = { - ambient = function() - return require("codecompanion.adapters").extend("openai_compatible", { - env = { - url = "http://34.46.152.76", - chat_url = "/run-auction" - } - }) - end, ollama = function() return require("codecompanion.adapters").extend("ollama", { env = {