From 19002d1ebc5ac6670b7c8ec0ef7ec3457e695f7f Mon Sep 17 00:00:00 2001 From: rootiest Date: Fri, 23 Aug 2024 10:09:19 -0400 Subject: [PATCH] feat: integrate arrow.nvim with custom options --- lua/plugins/editor.lua | 92 ++++++++++-------------------------------- 1 file changed, 22 insertions(+), 70 deletions(-) diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index b6ca32e..8cb2e91 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -8,74 +8,42 @@ return { { -- Dial import = "lazyvim.plugins.extras.editor.dial", }, - { -- Harpoon - import = "lazyvim.plugins.extras.editor.harpoon2", - }, { -- Illuminate import = "lazyvim.plugins.extras.editor.illuminate", }, + { -- Outline + import = "lazyvim.plugins.extras.editor.outline", + }, + { -- IncRename + import = "lazyvim.plugins.extras.editor.inc-rename", + }, { -- Flash "folke/flash.nvim", opts = { - modes = { - char = { - jump_labels = true, - }, - }, + modes = { char = { jump_labels = true } }, }, }, + { -- Arrow + "otavioschwanck/arrow.nvim", + opts = require("data.types").arrow, + }, { -- indent-blankline "lukas-reineke/indent-blankline.nvim", lazy = true, }, - { -- Outline - import = "lazyvim.plugins.extras.editor.outline", - }, { -- FoldNav "domharries/foldnav.nvim", lazy = true, - keys = { - { -- Goto Start - "", - function() - require("foldnav").goto_start() - end, - }, - { -- Goto Next - "", - function() - require("foldnav").goto_next() - end, - }, - { -- Goto Prev - "", - function() - require("foldnav").goto_prev_start() - end, - }, - { -- Goto End - "", - function() - require("foldnav").goto_end() - end, - }, - }, + keys = require("data.keys").foldnav, }, - { -- CodeWindow - "gorbit99/codewindow.nvim", - event = "BufEnter", - config = function() - require("codewindow").setup({ - auto_enable = true, - exclude_filetypes = { "help", "dashboard" }, - minimap_width = 16, - width_multiplier = 3, - screen_bounds = "background", - window_border = "none", - relative = "win", - }) - require("codewindow").apply_default_keybinds() - end, + ---@module "neominimap.config.meta" + { -- NeoMiniMap + "Isrothy/neominimap.nvim", + enabled = true, + lazy = false, + keys = require("data.keys").minimap, + init = require("data.types").minimap.init(), + cond = require("data.types").minimap.cond(), }, { -- Persistence "folke/persistence.nvim", @@ -90,29 +58,13 @@ return { "tris203/precognition.nvim", lazy = true, opts = {}, - keys = { - { -- Toggle Precognition - "zk", - function() - require("config.rootiest").toggle_precognition() - end, - desc = "Toggle Precognition", - }, - }, + keys = require("data.keys").precog, }, { -- Zen Mode "folke/zen-mode.nvim", lazy = true, opts = {}, - keys = { - { -- Toggle ZenMode - "z", - function() - require("zen-mode").toggle() - end, - desc = "Toggle ZenMode", - }, - }, + keys = require("data.keys").zen, }, { -- SmoothCursor "gen740/SmoothCursor.nvim",