Add comments
This commit is contained in:
@@ -1,24 +1,25 @@
|
||||
-- https://github.com/folke/snacks.nvim
|
||||
return {
|
||||
"folke/snacks.nvim",
|
||||
priority = 1000,
|
||||
lazy = false,
|
||||
opts = {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
indent = { enabled = true },
|
||||
input = { enabled = true },
|
||||
git = { enabled = true },
|
||||
lazygit = { enabled = true },
|
||||
notifier = { enabled = true },
|
||||
picker = { enabled = true },
|
||||
dashboard = {
|
||||
width = 80,
|
||||
row = nil, -- dashboard position. nil for center
|
||||
col = nil, -- dashboard position. nil for center
|
||||
pane_gap = 20, -- empty columns between vertical panes
|
||||
preset = {
|
||||
header = [[
|
||||
"folke/snacks.nvim",
|
||||
priority = 1000,
|
||||
lazy = false,
|
||||
opts = {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
indent = { enabled = true },
|
||||
input = { enabled = true },
|
||||
git = { enabled = true },
|
||||
lazygit = { enabled = true },
|
||||
notifier = { enabled = true },
|
||||
picker = { enabled = true },
|
||||
dashboard = {
|
||||
width = 80,
|
||||
row = nil, -- dashboard position. nil for center
|
||||
col = nil, -- dashboard position. nil for center
|
||||
pane_gap = 20, -- empty columns between vertical panes
|
||||
preset = {
|
||||
header = [[
|
||||
" *++*- "
|
||||
" -=+++++ "
|
||||
" -=====++= "
|
||||
@@ -49,37 +50,44 @@ return {
|
||||
" ###- "
|
||||
" *####% "
|
||||
" .:-:. "]],
|
||||
keys = {
|
||||
{ icon = " ", key = "n", desc = "New File", action = ":ene | startinsert" },
|
||||
{ icon = " ", key = "e", desc = "File Explorer", action = ":NvimTreeToggle" },
|
||||
{ icon = " ", key = "ff", desc = "Find File", action = ":Telescope find_files" },
|
||||
{ icon = " ", key = "fs", desc = "Find String", action = ":Telescope live_grep" },
|
||||
{ icon = " ", key = "s", desc = "Restore Session", action = ":AutoSession restore"},
|
||||
{ icon = " ", key = "L", desc = "Lazy UI", action = ":Lazy" },
|
||||
{ icon = " ", key = "M", desc = "Mason UI", action = ":Mason" },
|
||||
{ icon = " ", key = "G", desc = "LazyGit", action = function() Snacks.lazygit() end},
|
||||
{ icon = " ", key = "q", desc = "Quit", action = ":qa" },
|
||||
},
|
||||
},
|
||||
sections = {
|
||||
{ section = "header" },
|
||||
{
|
||||
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 = 2,
|
||||
ttl = 5 * 60,
|
||||
indent = 3,
|
||||
},
|
||||
{ pane = 2, section = "keys", gap = 1, padding = 4 },
|
||||
{ pane = 2, section = "startup" },
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ icon = " ", key = "n", desc = "New File", action = ":ene | startinsert" },
|
||||
{ icon = " ", key = "e", desc = "File Explorer", action = ":NvimTreeToggle" },
|
||||
{ icon = " ", key = "ff", desc = "Find File", action = ":Telescope find_files" },
|
||||
{ icon = " ", key = "fs", desc = "Find String", action = ":Telescope live_grep" },
|
||||
{ icon = " ", key = "s", desc = "Restore Session", action = ":AutoSession restore" },
|
||||
{ icon = " ", key = "L", desc = "Lazy UI", action = ":Lazy" },
|
||||
{ icon = " ", key = "M", desc = "Mason UI", action = ":Mason" },
|
||||
{
|
||||
icon = " ",
|
||||
key = "G",
|
||||
desc = "LazyGit",
|
||||
action = function()
|
||||
Snacks.lazygit()
|
||||
end,
|
||||
},
|
||||
{ icon = " ", key = "q", desc = "Quit", action = ":qa" },
|
||||
},
|
||||
},
|
||||
sections = {
|
||||
{ section = "header" },
|
||||
{
|
||||
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 = 2,
|
||||
ttl = 5 * 60,
|
||||
indent = 3,
|
||||
},
|
||||
{ pane = 2, section = "keys", gap = 1, padding = 4 },
|
||||
{ pane = 2, section = "startup" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user