[Snacks] Add, remove now obsolete plugins
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
return {
|
|
||||||
"echasnovski/mini.bufremove",
|
|
||||||
config = function()
|
|
||||||
_G.MiniBufremove = require("mini.bufremove")
|
|
||||||
vim.keymap.set(
|
|
||||||
"n",
|
|
||||||
"<C-x>",
|
|
||||||
":lua MiniBufremove.delete()<CR>",
|
|
||||||
{ silent = true, noremap = true, desc = "Remove buffer" }
|
|
||||||
)
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -120,16 +120,12 @@ return {
|
|||||||
IncSearch = { fg = "palette.softblue", bg = "#1a6b51" }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
|
IncSearch = { fg = "palette.softblue", bg = "#1a6b51" }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
|
||||||
ModeMsg = { fg = "palette.fg3", style = "bold" }, -- 'showmode' message (e.g., "-- INSERT --")
|
ModeMsg = { fg = "palette.fg3", style = "bold" }, -- 'showmode' message (e.g., "-- INSERT --")
|
||||||
|
|
||||||
NvimTreeRootFolder = { fg = "palette.lightblue", style = "bold" },
|
SnacksDashboardNormal = { fg = "palette.green" },
|
||||||
NvimTreeFolderName = { fg = "palette.lightblue" },
|
SnacksDashboardDesc = { fg = "palette.softblue" },
|
||||||
NvimTreeFolderIcon = { fg = "palette.lightblue" },
|
SnacksDashboardFile = { fg = "palette.softblue" },
|
||||||
NvimTreeOpenedFolderName = { fg = "palette.lightblue" },
|
SnacksDashboardIcon = { fg = "palette.orange" },
|
||||||
NvimTreeSymlinkFolderName = { fg = "palette.magenta" },
|
SnacksDashboardHeader = { fg = "palette.darkred" },
|
||||||
|
SnacksDashboardTitle = { fg = "palette.turquoise" },
|
||||||
NvimTreeExecFile = { fg = "palette.red" },
|
|
||||||
NvimTreeImageFile = { fg = "palette.white" },
|
|
||||||
NvimTreeSpecialFile = { fg = "palette.yellow" },
|
|
||||||
NvimTreeSymlink = { fg = "palette.magenta" },
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ return {
|
|||||||
require("notify").setup({
|
require("notify").setup({
|
||||||
max_width = 60,
|
max_width = 60,
|
||||||
minimum_width = 30,
|
minimum_width = 30,
|
||||||
render = "wrapped-default", -- default, minimal, simple, compact, wrapped-compact or wrapped-default
|
render = "wrapped-compact", -- default, minimal, simple, compact, wrapped-compact or wrapped-default
|
||||||
stages = "slide", -- fade_in_slide_out, fade, slide, static
|
stages = "slide", -- fade_in_slide_out, fade, slide, static
|
||||||
})
|
})
|
||||||
require("noice").setup({
|
require("noice").setup({
|
||||||
|
|||||||
@@ -1,77 +0,0 @@
|
|||||||
return {
|
|
||||||
"startup-nvim/startup.nvim",
|
|
||||||
dependencies = {
|
|
||||||
"nvim-telescope/telescope.nvim",
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
"nvim-telescope/telescope-file-browser.nvim",
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
require("startup").setup({
|
|
||||||
title = {
|
|
||||||
type = "text",
|
|
||||||
align = "center",
|
|
||||||
content = {
|
|
||||||
[[]],
|
|
||||||
[[]],
|
|
||||||
[[]],
|
|
||||||
[[ ]],
|
|
||||||
[[ ██████ █████ █████ █████ ███ ]],
|
|
||||||
[[ ░░██████ ░░███ ░░███ ░░███ ░░░ ]],
|
|
||||||
[[ ░███░███ ░███ ██████ ██████ ░███ ░███ ████ █████████████ ]],
|
|
||||||
[[ ░███░░███░███ ███░░███ ███░░███ ░███ ░███ ░░███ ░░███░░███░░███ ]],
|
|
||||||
[[ ░███ ░░██████ ░███████ ░███ ░███ ░░███ ███ ░███ ░███ ░███ ░███ ]],
|
|
||||||
[[ ░███ ░░█████ ░███░░░ ░███ ░███ ░░░█████░ ░███ ░███ ░███ ░███ ]],
|
|
||||||
[[ █████ ░░█████░░██████ ░░██████ ░░███ █████ █████░███ █████ ]],
|
|
||||||
[[ ░░░░░ ░░░░░ ░░░░░░ ░░░░░░ ░░░ ░░░░░ ░░░░░ ░░░ ░░░░░ ]],
|
|
||||||
[[ ]],
|
|
||||||
},
|
|
||||||
highlight = "String",
|
|
||||||
default_color = "#010155",
|
|
||||||
},
|
|
||||||
|
|
||||||
quotes = {
|
|
||||||
type = "text",
|
|
||||||
align = "center",
|
|
||||||
content = function()
|
|
||||||
local handle = io.popen("pwd")
|
|
||||||
if handle then
|
|
||||||
local cwd = handle:read("*l")
|
|
||||||
handle:close()
|
|
||||||
return { "Currently in " .. cwd }
|
|
||||||
else
|
|
||||||
return { "Error running command" }
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
highlight = "String",
|
|
||||||
default_color = "#FFFFFF",
|
|
||||||
},
|
|
||||||
|
|
||||||
old = {
|
|
||||||
type = "oldfiles",
|
|
||||||
oldfiles_directory = true,
|
|
||||||
align = "center",
|
|
||||||
title = "Old files",
|
|
||||||
oldfiles_amount = 10,
|
|
||||||
highlight = "String",
|
|
||||||
default_color = "#FFFFFF",
|
|
||||||
content = "",
|
|
||||||
},
|
|
||||||
|
|
||||||
options = {
|
|
||||||
mapping_keys = false,
|
|
||||||
},
|
|
||||||
|
|
||||||
colors = {
|
|
||||||
background = "#000000",
|
|
||||||
folded_section = "#100000",
|
|
||||||
},
|
|
||||||
|
|
||||||
mappings = {
|
|
||||||
execute_command = "<C-r>",
|
|
||||||
open_file = "<CR>",
|
|
||||||
},
|
|
||||||
|
|
||||||
parts = { "title", "quotes", "old" },
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
return {
|
|
||||||
-- indent lines
|
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
|
||||||
opts = {},
|
|
||||||
main = "ibl",
|
|
||||||
config = function()
|
|
||||||
require("ibl").setup()
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
92
nvim/lua/plugins/util/snacks.lua
Normal file
92
nvim/lua/plugins/util/snacks.lua
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
return {
|
||||||
|
"folke/snacks.nvim",
|
||||||
|
priority = 1000,
|
||||||
|
lazy = false,
|
||||||
|
---@type snacks.Config
|
||||||
|
opts = {
|
||||||
|
-- your configuration comes here
|
||||||
|
-- or leave it empty to use the default settings
|
||||||
|
-- refer to the configuration section below
|
||||||
|
animate = { enabled = true },
|
||||||
|
bigfile = { enabled = true },
|
||||||
|
bufdelete = { enabled = true },
|
||||||
|
dashboard = {
|
||||||
|
enabled = true,
|
||||||
|
sections = {
|
||||||
|
{ section = "header", hl = "SnacksDashboardHeader" },
|
||||||
|
{
|
||||||
|
pane = 2,
|
||||||
|
section = "terminal",
|
||||||
|
cmd = "colorscript -e square",
|
||||||
|
height = 5,
|
||||||
|
padding = 1,
|
||||||
|
},
|
||||||
|
{ section = "keys", hl = "SnacksDashboardPrimary", gap = 1, padding = 1 },
|
||||||
|
{
|
||||||
|
pane = 2,
|
||||||
|
icon = " ",
|
||||||
|
title = "Recent Files",
|
||||||
|
section = "recent_files",
|
||||||
|
indent = 2,
|
||||||
|
padding = 1,
|
||||||
|
hl = "SnacksDashboardPrimary",
|
||||||
|
},
|
||||||
|
{ pane = 2, icon = " ", title = "Projects", section = "projects", indent = 2, padding = 1 },
|
||||||
|
{
|
||||||
|
pane = 2,
|
||||||
|
icon = " ",
|
||||||
|
title = "Git Status",
|
||||||
|
section = "terminal",
|
||||||
|
enabled = function()
|
||||||
|
return Snacks.git.get_root() ~= nil
|
||||||
|
end,
|
||||||
|
cmd = "git status --short --branch --renames",
|
||||||
|
height = 5,
|
||||||
|
padding = 1,
|
||||||
|
ttl = 5 * 60,
|
||||||
|
indent = 3,
|
||||||
|
},
|
||||||
|
{ section = "startup" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
indent = { enabled = true },
|
||||||
|
lazygit = { enabled = true },
|
||||||
|
picker = { enabled = true },
|
||||||
|
quickfile = { enabled = true },
|
||||||
|
statuscolumn = { enabled = true },
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader><leader>gl",
|
||||||
|
function()
|
||||||
|
Snacks.lazygit()
|
||||||
|
end,
|
||||||
|
desc = "Open LazyGit",
|
||||||
|
mode = "n",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>fcs",
|
||||||
|
function()
|
||||||
|
Snacks.picker.highlights({ pattern = "hl_group:^Snacks" })
|
||||||
|
end,
|
||||||
|
desc = "Show Snacks highlights",
|
||||||
|
mode = "n",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>fca",
|
||||||
|
function()
|
||||||
|
Snacks.picker.highlights()
|
||||||
|
end,
|
||||||
|
desc = "Show highlight groups",
|
||||||
|
mode = "n",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<C-x>",
|
||||||
|
function()
|
||||||
|
Snacks.bufdelete()
|
||||||
|
end,
|
||||||
|
desc = "Close buffer",
|
||||||
|
mode = "n",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user