Files
neovim-config/lua/plugins/editor.lua
T

149 lines
3.5 KiB
Lua

-- ╭─────────────────────────────────────────────────────────╮
-- │ Editor │
-- ╰─────────────────────────────────────────────────────────╯
local data = require("data")
return {
{ -- Aerial
import = "lazyvim.plugins.extras.editor.aerial",
},
{ -- Dial
import = "lazyvim.plugins.extras.editor.dial",
},
{ -- Illuminate
import = "lazyvim.plugins.extras.editor.illuminate",
},
{ -- Outline
import = "lazyvim.plugins.extras.editor.outline",
},
{ -- IncRename
import = "lazyvim.plugins.extras.editor.inc-rename",
},
{ -- Treesitter-context
import = "lazyvim.plugins.extras.ui.treesitter-context",
},
{ -- Mini.move
import = "lazyvim.plugins.extras.editor.mini-move",
},
{
"folke/trouble.nvim",
cmd = data.cmd.trouble,
opts = {
modes = {
symbols = { -- Configure symbols mode
win = {
type = "split", -- split window
relative = "win", -- relative to current window
position = "right", -- right side
size = 0.3, -- 30% of the window
},
},
},
},
},
{ -- Flash
"folke/flash.nvim",
opts = {
modes = { char = { jump_labels = true } },
},
keys = data.keys.flash,
},
{ -- Arrow
"otavioschwanck/arrow.nvim",
opts = data.types.arrow,
},
{ -- indent-blankline
"lukas-reineke/indent-blankline.nvim",
lazy = true,
},
---@module "neominimap.config.meta"
{ -- NeoMiniMap
"Isrothy/neominimap.nvim",
lazy = false,
keys = data.keys.minimap,
init = data.types.minimap.init(),
cond = data.types.minimap.cond(),
},
{ -- Persistence
"folke/persistence.nvim",
event = "BufReadPre",
opts = {},
},
{ -- DeadColumn
"Bekaboo/deadcolumn.nvim",
event = "BufEnter",
},
{ -- Precognition
"tris203/precognition.nvim",
lazy = true,
opts = {},
keys = data.keys.precog,
},
{ -- Zen Mode
"folke/zen-mode.nvim",
lazy = true,
opts = {},
keys = data.keys.zen,
},
{ -- SmoothCursor
"gen740/SmoothCursor.nvim",
event = "BufEnter",
-- lazy = true,
opts = {
cursor = "",
},
},
{ -- Smart Scrolloff
"tonymajestro/smart-scrolloff.nvim",
event = "VeryLazy",
opts = {
scrolloff_percentage = 0.25,
},
},
{ -- Recorder
"chrisgrieser/nvim-recorder",
event = "VeryLazy",
dependencies = data.deps.recorder,
opts = {},
},
{ -- Comment Box
"LudoPinelli/comment-box.nvim",
},
{ -- vim-visual-multi
"mg979/vim-visual-multi",
},
{ -- Todo Comments
"folke/todo-comments.nvim",
opts = {
keywords = data.types.todo.keywords,
},
},
{ -- Rainbow Delimeters
"HiPhish/rainbow-delimiters.nvim",
},
{ -- Colorful window separators
"nvim-zh/colorful-winsep.nvim",
opts = {
only_line_seq = false,
symbols = { "─", "│", "╭", "╮", "╰", "╯" },
no_exec_files = {
"packer",
"TelescopePrompt",
"mason",
"CompetiTest",
"NvimTree",
"neotree",
"lazy",
"neominimap",
},
},
event = { "WinLeave" },
},
{ -- Auto Cursorline
"delphinus/auto-cursorline.nvim",
opts = {
wait_ms = 2000,
},
},
}