mirror of
https://github.com/thegeneralist01/config.git
synced 2026-03-07 10:59:55 +01:00
115 lines
3.1 KiB
Lua
115 lines
3.1 KiB
Lua
return {
|
|
{
|
|
"dmtrKovalenko/fff.nvim",
|
|
build = function()
|
|
require("fff.download").download_or_build_binary()
|
|
end,
|
|
opts = { -- (optional)
|
|
debug = {
|
|
enabled = false,
|
|
show_scores = true,
|
|
},
|
|
},
|
|
-- No need to lazy-load with lazy.nvim.
|
|
-- This plugin initializes itself lazily.
|
|
lazy = false,
|
|
keys = {
|
|
{
|
|
"<leader>ff", -- try it if you didn't it is a banger keybinding for a picker
|
|
function()
|
|
require("fff").find_files()
|
|
end,
|
|
desc = "FFFind files",
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"folke/snacks.nvim",
|
|
priority = 1000,
|
|
lazy = false,
|
|
dependencies = {
|
|
"nvim-tree/nvim-web-devicons",
|
|
"nvim-mini/mini.icons",
|
|
},
|
|
---@type snacks.Config
|
|
opts = {
|
|
bigfile = { enabled = true },
|
|
dashboard = {
|
|
enabled = true,
|
|
preset = {
|
|
keys = {
|
|
{
|
|
icon = " ",
|
|
key = "t",
|
|
desc = "TODOs",
|
|
action = ":lua Snacks.picker.todo_comments()",
|
|
},
|
|
{
|
|
icon = " ",
|
|
key = "f",
|
|
desc = "Find File",
|
|
-- action = ":lua Snacks.dashboard.pick('files')"
|
|
action = ":lua require('fff').find_files()",
|
|
},
|
|
{ icon = " ", key = "n", desc = "New File", action = ":ene | startinsert" },
|
|
{
|
|
icon = " ",
|
|
key = "g",
|
|
desc = "Find Text",
|
|
action = ":lua Snacks.dashboard.pick('live_grep')",
|
|
},
|
|
{
|
|
icon = " ",
|
|
key = "r",
|
|
desc = "Recent Files",
|
|
action = ":lua Snacks.dashboard.pick('oldfiles')",
|
|
},
|
|
{
|
|
icon = " ",
|
|
key = "c",
|
|
desc = "Config",
|
|
action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})",
|
|
},
|
|
{ icon = " ", key = "s", desc = "Restore Session", section = "session" },
|
|
{
|
|
icon = " ",
|
|
key = "L",
|
|
desc = "Lazy",
|
|
action = ":Lazy",
|
|
enabled = package.loaded.lazy ~= nil,
|
|
},
|
|
{ icon = " ", key = "q", desc = "Quit", action = ":qa" },
|
|
},
|
|
},
|
|
sections = {
|
|
{
|
|
section = "terminal",
|
|
cmd = "greeting",
|
|
hl = "header",
|
|
ttl = 60,
|
|
height = 5,
|
|
padding = 2,
|
|
align = "center",
|
|
},
|
|
{ section = "keys", gap = 1, padding = 1 },
|
|
{ icon = " ", title = "Recent Files", section = "recent_files", indent = 3, padding = 3 },
|
|
{ section = "startup" },
|
|
},
|
|
},
|
|
explorer = { enabled = false },
|
|
image = { enabled = true },
|
|
input = { enabled = true },
|
|
|
|
picker = { enabled = true },
|
|
notifier = { enabled = false },
|
|
quickfile = { enabled = true },
|
|
|
|
scope = { enabled = true },
|
|
|
|
-- hmmm:
|
|
scroll = { enabled = false },
|
|
statuscolumn = { enabled = false },
|
|
words = { enabled = false },
|
|
},
|
|
},
|
|
}
|