feat: migrate nvim plugins to snacks.nvim

This commit is contained in:
DACHXY 2025-02-20 20:48:30 +08:00
parent b66238c0c4
commit 089ac4e7fd
4 changed files with 39 additions and 53 deletions

View file

@ -1,20 +0,0 @@
return {
{
"goolord/alpha-nvim",
opts = function()
local dashboard = require("alpha.themes.dashboard")
local logo = [[
]]
dashboard.section.header.val = vim.split(logo, "\n")
end,
},
}

View file

@ -1,32 +0,0 @@
return {
{
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
{
"s1n7ax/nvim-window-picker", -- for open_with_window_picker keymaps
version = "2.*",
config = function()
require("window-picker").setup({
filter_rules = {
include_current_win = false,
autoselect_one = true,
-- filter using buffer options
bo = {
-- if the file type is one of following, the window will be ignored
filetype = { "neo-tree", "neo-tree-popup", "notify" },
-- if the buffer type is one of following, the window will be ignored
buftype = { "terminal", "quickfix" },
},
},
})
end,
},
},
opts = {
window = {
position = "right",
},
},
},
}

View file

@ -0,0 +1,37 @@
return {
{
"folke/snacks.nvim",
opts = {
explorer = {
enabled = true,
},
image = { enabled = true },
picker = {
enabled = true,
sources = {
explorer = {
layout = { layout = { position = "right" } },
},
},
},
notifier = { enabled = true },
dashboard = {
enabled = true,
width = 60,
row = nil,
col = nil,
preset = {
header = [[
]],
},
},
},
},
}

View file

@ -236,7 +236,6 @@ in
{ import = "lazyvim.plugins.extras.lang.toml" },
{ import = "lazyvim.plugins.extras.lang.yaml" },
{ import = "lazyvim.plugins.extras.linting.eslint" },
{ import = "lazyvim.plugins.extras.ui.alpha" },
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
{ import = "lazyvim.plugins.extras.ui.mini-indentscope" },
{ import = "lazyvim.plugins.extras.ui.smear-cursor" },
@ -247,6 +246,8 @@ in
{ import = "lazyvim.plugins.extras.util.rest" },
{ import = "lazyvim.plugins.extras.editor.refactoring" },
{ import = "lazyvim.plugins.extras.editor.harpoon2" },
{ import = "lazyvim.plugins.extras.editor.snacks_explorer" },
{ import = "lazyvim.plugins.extras.editor.snacks_picker" },
-- import/override your plugins
{ import = "plugins" },