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

125 lines
3.2 KiB
Lua

--- @module "plugins.util"
--- This module defines the utility plugins spec for the Neovim configuration.
-- ╭─────────────────────────────────────────────────────────╮
-- │ Utilities │
-- ╰─────────────────────────────────────────────────────────╯
local data = require("data")
return {
{ -- Chezmoi
import = "lazyvim.plugins.extras.util.chezmoi",
},
{ -- Dotfiles plugins
import = "lazyvim.plugins.extras.util.dot",
},
{ -- Wakatime
"wakatime/vim-wakatime",
cond = vim.g.usewakatime,
},
{ -- Link following
"chrishrb/gx.nvim",
lazy = true,
cmd = data.cmd.gx,
keys = data.keys.gx,
init = function()
vim.g.netrw_nogx = 1
end,
dependencies = data.deps.gx,
config = true,
},
{ -- Auto-save
"okuuva/auto-save.nvim",
enabled = data.func.check_global_var("auto_save", true, true),
cmd = data.cmd.autosave,
event = { "InsertLeave", "TextChanged" },
opts = data.types.autosave,
},
{ -- Ripgrep substitute
"chrisgrieser/nvim-rip-substitute",
event = "InsertEnter",
cmd = data.cmd.ripsub,
keys = data.keys.ripsub,
},
{ -- Unception
"samjwill/nvim-unception",
init = function()
vim.g.unception_block_while_host_edits = true
end,
},
{ -- Codesnap
"mistricky/codesnap.nvim",
enabled = data.func.check_global_var("codesnap", true, true),
lazy = true,
build = "make",
opts = data.types.codesnap,
cmd = data.cmd.codesnap,
keys = data.keys.codesnap,
},
{ -- Kulala
"mistweaverco/kulala.nvim",
ft = data.types.kulala.ft,
opts = {},
},
{ -- Hardtime
"m4xshen/hardtime.nvim",
dependencies = data.deps.hardtime,
opts = function()
return { enabled = vim.g.usehardtime }
end,
},
{ -- CapsWord
"dmtrKovalenko/caps-word.nvim",
lazy = true,
opts = {},
keys = data.keys.capsword,
},
{ -- Music Controls
"AntonVanAssche/music-controls.nvim",
enabled = data.func.check_global_var("usemusic", true, true),
dependencies = data.deps.musiccontrols,
opts = {
default_player = "YoutubeMusic",
},
},
{ -- Qalc
"Apeiros-46B/qalc.nvim",
cmd = data.cmd.qalc,
keys = data.keys.qalc,
opts = {
set_ft = "qalc",
},
},
{ -- Remote-nvim
"amitds1997/remote-nvim.nvim",
lazy = true,
version = "*", -- Pin to GitHub releases
dependencies = data.deps.remotenvim,
config = true,
},
{ -- Encourage
"r-cha/encourage.nvim",
enabled = data.func.check_global_var("encourage", true, true),
config = true,
},
{ -- Helpview
"OXY2DEV/helpview.nvim",
ft = "help",
dependencies = data.deps.needs_treesitter,
},
{ -- Suda
"lambdalisue/vim-suda",
cmd = data.cmd.suda,
config = data.types.suda,
},
{ -- Pigeon
"Pheon-Dev/pigeon",
config = data.types.pigeon,
},
{ -- Discord Presence
"andweeb/presence.nvim",
opts = {
enable_line_number = true,
},
},
}