1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-07 10:59:55 +01:00

nvim: QoL features

This commit is contained in:
TheGeneralist 2026-01-19 23:08:50 +01:00
parent 3f34891413
commit bd2e9ca61d
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
3 changed files with 94 additions and 2 deletions

View file

@ -0,0 +1,91 @@
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 = {
{
"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,
---@type snacks.Config
opts = {
bigfile = { enabled = true },
dashboard = {
enabled = true,
preset = {
keys = {
{
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" },
},
},
},
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 },
},
},
}