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

179 lines
3.9 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",
},
{ -- Illuminate
import = "lazyvim.plugins.extras.editor.illuminate",
},
{
"folke/flash.nvim",
opts = {
modes = {
char = {
jump_labels = true,
},
},
},
},
{
"lukas-reineke/indent-blankline.nvim",
opts = {
scope = { show_start = true, show_end = true },
indent = {
char = {
"󰎤",
"󰎧",
"󰎪",
"󰎭",
"󰎱",
"󰎳",
"󰎶",
"󰎹",
"󰎼",
"󰽽",
},
},
},
},
{ -- Outline
import = "lazyvim.plugins.extras.editor.outline",
},
{ -- Telescope
import = "lazyvim.plugins.extras.editor.telescope",
},
{ -- FoldNav
"domharries/foldnav.nvim",
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",
opts = {
preset = "modern",
win = {
wo = {
winblend = 10,
},
},
},
},
{ -- CodeWindow
"gorbit99/codewindow.nvim",
event = "InsertEnter",
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 = {},
},
{ -- Remote-nvim
"amitds1997/remote-nvim.nvim",
lazy = true,
version = "*", -- Pin to GitHub releases
dependencies = {
"nvim-lua/plenary.nvim", -- For standard functions
"MunifTanjim/nui.nvim", -- To build the plugin UI
"nvim-telescope/telescope.nvim", -- For picking b/w different remote methods
},
config = true,
},
{ -- DeadColumn
"Bekaboo/deadcolumn.nvim",
event = "InsertEnter",
config = function()
require("deadcolumn").setup({
scope = "line", ---@type string|fun(): integer
---@type string[]|fun(mode: string): boolean
modes = function(mode)
return mode:find("^[ictRss\x13]") ~= nil
end,
blending = {
threshold = 0.9,
colorcode = "#737895",
hlgroup = { "Normal", "bg" },
},
warning = {
alpha = 0.4,
offset = 0,
colorcode = "#f27b82",
hlgroup = { "Error", "bg" },
},
extra = {
---@type string?
follow_tw = "80",
},
})
vim.cmd(":set colorcolumn=120")
end,
},
{ -- Precognition
"tris203/precognition.nvim",
lazy = true,
opts = {},
},
{ -- Zen Mode
"folke/zen-mode.nvim",
--event = "VeryLazy",
lazy = true,
opts = {},
},
{ -- SmoothCursor
"gen740/SmoothCursor.nvim",
event = "InsertEnter",
lazy = true,
config = function()
---@diagnostic disable-next-line: missing-parameter
require("smoothcursor").setup()
end,
},
}