Files
neovim-config/lua/plugins/editor.lua
T
rootiest b622454835 ️ perf(lazy-load): delegate plugins to their cmd/keymaps
Increase performance: Allow plugins to only load with their commands and keymaps whenever possible
2024-08-04 06:57:07 -04:00

156 lines
3.1 KiB
Lua

-- -----------------------------------------------------------------------------
-- --------------------------------- EDITOR ------------------------------------
-- -----------------------------------------------------------------------------
return {
{ -- Edgy
import = "lazyvim.plugins.extras.ui.edgy",
},
{ -- Mini-animate
import = "lazyvim.plugins.extras.ui.mini-animate",
},
{ -- Aerial
import = "lazyvim.plugins.extras.editor.aerial",
},
{ -- Dial
import = "lazyvim.plugins.extras.editor.dial",
},
{ -- Fzf
import = "lazyvim.plugins.extras.editor.fzf",
},
{ -- Illuminate
import = "lazyvim.plugins.extras.editor.illuminate",
},
{
"akinsho/bufferline.nvim",
opts = {
options = {
separator_style = "slant",
},
},
},
{
"folke/flash.nvim",
opts = {
modes = {
char = {
jump_labels = true,
},
},
},
},
{ -- indent-blankline
"lukas-reineke/indent-blankline.nvim",
lazy = true,
},
{ -- Outline
import = "lazyvim.plugins.extras.editor.outline",
},
{ -- FoldNav
"domharries/foldnav.nvim",
lazy = true,
keys = {
{
"<C-h>",
function()
require("foldnav").goto_start()
end,
},
{
"<C-j>",
function()
require("foldnav").goto_next()
end,
},
{
"<C-k>",
function()
require("foldnav").goto_prev_start()
end,
},
{
"<C-l>",
function()
require("foldnav").goto_end()
end,
},
},
},
{ -- Which-Key
"folke/which-key.nvim",
lazy = true,
opts = {
preset = "modern",
win = {
wo = {
winblend = 10,
},
},
},
},
{ -- 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,
},
{ -- Persistence
"folke/persistence.nvim",
event = "BufReadPre",
opts = {},
},
{ -- DeadColumn
"Bekaboo/deadcolumn.nvim",
event = "BufEnter",
},
{ -- Precognition
"tris203/precognition.nvim",
lazy = true,
opts = {},
keys = {
{
"zk",
function()
require("config.rootiest").toggle_precognition()
end,
desc = "Toggle Precognition",
},
},
},
{ -- Zen Mode
"folke/zen-mode.nvim",
--event = "VeryLazy",
lazy = true,
opts = {},
keys = {
{ -- Toggle ZenMode
"<leader>z",
function()
require("zen-mode").toggle()
end,
desc = "Toggle ZenMode",
},
},
},
{ -- SmoothCursor
"gen740/SmoothCursor.nvim",
event = "BufEnter",
-- lazy = true,
config = function()
---@diagnostic disable-next-line: missing-fields
require("smoothcursor").setup({})
end,
},
}