From 49ccf0cc4555267427087a1e465f358e38a7ea77 Mon Sep 17 00:00:00 2001 From: Scott McKendry <39483124+scottmckendry@users.noreply.github.com> Date: Sun, 18 Feb 2024 07:29:22 +1300 Subject: [PATCH] delete old resynced plugins :recycle: --- nvim/lua/plugins/alpha.lua | 84 -------------------------------- nvim/lua/plugins/lazygit.lua | 10 ---- nvim/lua/plugins/minianimate.lua | 18 ------- 3 files changed, 112 deletions(-) delete mode 100644 nvim/lua/plugins/alpha.lua delete mode 100644 nvim/lua/plugins/lazygit.lua delete mode 100644 nvim/lua/plugins/minianimate.lua diff --git a/nvim/lua/plugins/alpha.lua b/nvim/lua/plugins/alpha.lua deleted file mode 100644 index 01906ab..0000000 --- a/nvim/lua/plugins/alpha.lua +++ /dev/null @@ -1,84 +0,0 @@ -return { - "goolord/alpha-nvim", - lazy = false, - opts = function() - local dashboard = require("alpha.themes.dashboard") - local logo = [[ - ▄ ▄ - ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ - █ ▄ █▄█ ▄▄▄ █ █▄█ █ █ - ▄▄ █▄█▄▄▄█ █▄█▄█▄▄█▄▄█ █ - ▄ █▄▄█ ▄ ▄▄ ▄█ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄ - █▄▄▄▄ ▄▄▄ █ ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ █ ▄ -▄ █ █▄█ █▄█ █ █ █▄█ █ █▄█ ▄▄▄ █ █ -█▄█ ▄ █▄▄█▄▄█ █ ▄▄█ █ ▄ █ █▄█▄█ █ - █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ █▄█▄▄▄█ -]] - - dashboard.section.header.val = vim.split(logo, "\n") - dashboard.section.buttons.val = { - dashboard.button( - "f", - " " .. " Find file", - ":lua require('core.telescopePickers').prettyFilesPicker({ picker = 'find_files' })" - ), - dashboard.button("n", "󰙴 " .. " New file", ":ene startinsert "), - dashboard.button( - "r", - " " .. " Recent files", - ":lua require('core.telescopePickers').prettyFilesPicker({ picker = 'oldfiles' })" - ), - dashboard.button( - "g", - " " .. " Find text", - ":lua require('core.telescopePickers').prettyGrepPicker({ picker = 'live_grep' })" - ), - dashboard.button("e", " " .. " Explore", ":Neotree toggle"), - dashboard.button("l", "󰒲 " .. " Lazy", ":Lazy"), - dashboard.button("q", " " .. " Quit", ":qa"), - } - - -- set highlight - for _, button in ipairs(dashboard.section.buttons.val) do - button.opts.hl = "AlphaButtons" - button.opts.hl_shortcut = "AlphaShortcut" - end - dashboard.section.header.opts.hl = "AlphaHeader" - dashboard.section.footer.opts.hl = "AlphaFooter" - dashboard.opts.layout[1].val = 10 - return dashboard - end, - config = function(_, dashboard) - -- close Lazy and re-open when the dashboard is ready - if vim.o.filetype == "lazy" then - vim.cmd.close() - vim.api.nvim_create_autocmd("User", { - pattern = "AlphaReady", - callback = function() - require("lazy").show() - end, - }) - end - - require("alpha").setup(dashboard.opts) - - vim.api.nvim_create_autocmd("User", { - pattern = "LazyVimStarted", - callback = function() - local stats = require("lazy").stats() - local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100) - local version = " 󰥱 v" - .. vim.version().major - .. "." - .. vim.version().minor - .. "." - .. vim.version().patch - local plugins = "⚡ loaded " .. stats.count .. " plugins in " .. ms .. "ms" - local datetime = os.date("  %a, %d %b  %H:%M") - local footer = version .. "\t" .. plugins .. "\n \n" .. datetime .. "\n" - dashboard.section.footer.val = footer - pcall(vim.cmd.AlphaRedraw) - end, - }) - end, -} diff --git a/nvim/lua/plugins/lazygit.lua b/nvim/lua/plugins/lazygit.lua deleted file mode 100644 index 9f4061f..0000000 --- a/nvim/lua/plugins/lazygit.lua +++ /dev/null @@ -1,10 +0,0 @@ -return { - "kdheepak/lazygit.nvim", - cmd = { "LazyGit", "LazyGitConfig" }, - keys = { - { "gg", ":LazyGit", silent = true, desc = "LazyGit", mode = "n" }, - }, - config = function() - vim.g.lazygit_floating_window_border_chars = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' } -- no borders - end, -} diff --git a/nvim/lua/plugins/minianimate.lua b/nvim/lua/plugins/minianimate.lua deleted file mode 100644 index 98dee82..0000000 --- a/nvim/lua/plugins/minianimate.lua +++ /dev/null @@ -1,18 +0,0 @@ -return { - "echasnovski/mini.animate", - event = "VeryLazy", - config = function() - local animate = require("mini.animate") - local timing = animate.gen_timing.linear({ duration = 50, unit = "total" }) - animate.setup({ - cursor = { - timing = timing, - }, - scroll = { - timing = timing, - }, - open = { enable = false }, - close = { enable = false }, - }) - end, -}