return { -- Autopairs { "windwp/nvim-autopairs", event = "InsertEnter", config = function() require("nvim-autopairs").setup({}) end, }, -- Comment.nvim { "numToStr/Comment.nvim", keys = { { "gcc", mode = "n", desc = "Comment toggle current line" }, { "gc", mode = { "n", "o" }, desc = "Comment toggle linewise" }, { "gc", mode = "x", desc = "Comment toggle linewise (visual)" }, { "gbc", mode = "n", desc = "Comment toggle current block" }, { "gb", mode = { "n", "o" }, desc = "Comment toggle blockwise" }, { "gb", mode = "x", desc = "Comment toggle blockwise (visual)" }, }, config = function() require("Comment").setup() end, }, -- Flash.nvim for navigation { "folke/flash.nvim", event = "VeryLazy", opts = { modes = { search = { enabled = true, }, }, }, keys = { { "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" }, { "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" }, { "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" }, { "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" }, { "", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" }, }, }, -- Surround { "kylechui/nvim-surround", version = "*", event = "VeryLazy", opts = {}, }, -- Supermaven AI completion { "supermaven-inc/supermaven-nvim", event = "InsertEnter", opts = { keymaps = { accept_suggestion = "", clear_suggestion = "", accept_word = "", }, ignore_filetypes = { "gitcommit", "TelescopePrompt" }, color = { suggestion_color = vim.api.nvim_get_hl(0, { name = "Comment" }).fg, cterm = 244, }, log_level = "info", disable_inline_completion = false, disable_keymaps = false, }, }, }