♻️ refactor(git-plugins): create a git category and move relevant plugins there
Moved git plugins into their own category
This commit is contained in:
+11
-113
@@ -2,8 +2,6 @@
|
||||
-- │ Utilities │
|
||||
-- ╰─────────────────────────────────────────────────────────╯
|
||||
|
||||
local rootilities = require("utils.rootilities")
|
||||
|
||||
return {
|
||||
{ -- Chezmoi
|
||||
import = "lazyvim.plugins.extras.util.chezmoi",
|
||||
@@ -11,12 +9,6 @@ return {
|
||||
{ -- Dotfiles plugins
|
||||
import = "lazyvim.plugins.extras.util.dot",
|
||||
},
|
||||
{ -- Git UI
|
||||
import = "lazyvim.plugins.extras.util.gitui",
|
||||
},
|
||||
{ -- Octo plugin
|
||||
import = "lazyvim.plugins.extras.util.octo",
|
||||
},
|
||||
{ -- Wakatime
|
||||
"wakatime/vim-wakatime",
|
||||
cond = vim.g.usewakatime,
|
||||
@@ -64,29 +56,6 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
{ -- Gist Tools
|
||||
"Rawnly/gist.nvim",
|
||||
lazy = true,
|
||||
cmd = {
|
||||
"GistCreate",
|
||||
"GistCreateFromFile",
|
||||
"GistsList",
|
||||
},
|
||||
keys = {
|
||||
{ -- Create Gist
|
||||
"<leader>gnc",
|
||||
"<cmd>GistCreate<cr>",
|
||||
desc = "Create Gist",
|
||||
mode = { "n", "x" },
|
||||
},
|
||||
{ -- Find Gists
|
||||
"<leader>gnf",
|
||||
"<cmd>GistList<cr>",
|
||||
desc = "Find Gists",
|
||||
},
|
||||
},
|
||||
config = true,
|
||||
},
|
||||
{ -- Unception
|
||||
"samjwill/nvim-unception",
|
||||
init = function()
|
||||
@@ -118,31 +87,6 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
{ -- LazyGit
|
||||
"kdheepak/lazygit.nvim",
|
||||
event = "VeryLazy",
|
||||
cmd = {
|
||||
"LazyGit",
|
||||
"LazyGitConfig",
|
||||
"LazyGitCurrentFile",
|
||||
"LazyGitFilter",
|
||||
"LazyGitFilterCurrentFile",
|
||||
},
|
||||
keys = {
|
||||
{ -- LazyGit
|
||||
"<leader>lg",
|
||||
"<cmd>LazyGit<cr>",
|
||||
desc = "LazyGit",
|
||||
},
|
||||
},
|
||||
dependencies = {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
config = function()
|
||||
require("telescope").load_extension("lazygit")
|
||||
end,
|
||||
},
|
||||
{ -- Codesnap
|
||||
"mistricky/codesnap.nvim",
|
||||
lazy = true,
|
||||
@@ -196,19 +140,6 @@ return {
|
||||
require("kulala").setup()
|
||||
end,
|
||||
},
|
||||
{ -- Thanks/github-stars
|
||||
"jsongerber/thanks.nvim",
|
||||
lazy = true,
|
||||
cmd = {
|
||||
"ThanksAll",
|
||||
"ThanksGithubAuth",
|
||||
"ThanksGithubLogout",
|
||||
"ThanksClearCache",
|
||||
},
|
||||
opts = {
|
||||
star_on_install = false,
|
||||
},
|
||||
},
|
||||
{ -- Hardtime
|
||||
"m4xshen/hardtime.nvim",
|
||||
dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
|
||||
@@ -216,26 +147,6 @@ return {
|
||||
return { enabled = vim.g.usehardtime }
|
||||
end,
|
||||
},
|
||||
{ -- GitLinker
|
||||
"linrongbin16/gitlinker.nvim",
|
||||
lazy = true,
|
||||
cmd = "GitLink",
|
||||
opts = {},
|
||||
keys = {
|
||||
{
|
||||
"<leader>gy",
|
||||
"<cmd>GitLink<cr>",
|
||||
mode = { "n", "v" },
|
||||
desc = "Yank git link",
|
||||
},
|
||||
{
|
||||
"<leader>gY",
|
||||
"<cmd>GitLink!<cr>",
|
||||
mode = { "n", "v" },
|
||||
desc = "Open git link",
|
||||
},
|
||||
},
|
||||
},
|
||||
{ -- CapsWord
|
||||
"dmtrKovalenko/caps-word.nvim",
|
||||
lazy = true,
|
||||
@@ -258,30 +169,6 @@ return {
|
||||
default_player = "YoutubeMusic",
|
||||
},
|
||||
},
|
||||
{ -- Git Blame
|
||||
"f-person/git-blame.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = function()
|
||||
-- Get the current lualine configuration
|
||||
local config = require("lualine").get_config()
|
||||
local git_blame = require("gitblame")
|
||||
-- Define the width limit for displaying the Git blame component
|
||||
local width_limit = 180 -- Adjust this value as needed
|
||||
|
||||
-- Add Git-blame to lualine_c section
|
||||
table.insert(config.sections.lualine_c, {
|
||||
git_blame.get_current_blame_text,
|
||||
cond = function()
|
||||
return git_blame.is_blame_text_available()
|
||||
and rootilities.is_window_wide_enough(width_limit)
|
||||
end,
|
||||
color = { fg = rootilities.get_fg_color("GitSignsCurrentLineBlame") },
|
||||
})
|
||||
|
||||
-- Apply the new configuration
|
||||
require("lualine").setup(config)
|
||||
end,
|
||||
},
|
||||
{ -- Qalc
|
||||
"Apeiros-46B/qalc.nvim",
|
||||
cmd = {
|
||||
@@ -307,4 +194,15 @@ return {
|
||||
},
|
||||
config = true,
|
||||
},
|
||||
{ -- Encourage
|
||||
"r-cha/encourage.nvim",
|
||||
config = true,
|
||||
},
|
||||
{ -- Helpview
|
||||
"OXY2DEV/helpview.nvim",
|
||||
ft = "help",
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user