nvim-minimal/lua/plugins/snacks.lua
mk 97a90cc1e5 Initial commit: nvim-minimal
A small, fast, portable Neovim config built on bare lazy.nvim (no LazyVim,
no LSPs, no Mason). Vendored `based` colorscheme (GPLv3, self-authored,
derived from vim-vividchalk) so the config loads on any machine with just
nvim + git — the listed treesitter parsers ship prebuilt, so no compiler
is needed for the configured languages.

Plugins: snacks.nvim (picker/explorer/buffers), nvim-treesitter (pinned to
master for the declarative ensure_installed/highlight/indent API), blink.cmp
(buffer+path completion, prebuilt binary), lualine, gitsigns, mini.align/
comment/surround.

Personal keymaps ported: jj/jk/kj/чя escape, ж -> :, Russian langmap, arrow
disables, bracket-return expansions, gc/sa-sd-sr/gz-gZ.
2026-07-28 03:23:41 +03:00

34 lines
1.1 KiB
Lua

-- folke/snacks.nvim: picker, explorer, buffers.
-- The familiar `gb` / `<leader>F` / `<leader>t` entry points live here as
-- lazy `keys`, so the global `Snacks` is guaranteed to exist before any call.
return {
{
"folke/snacks.nvim",
priority = 1000,
lazy = false,
keys = {
{
"gb",
function()
Snacks.picker.buffers({ hidden = false, nofile = false, sort_lastused = true, current = false })
end,
desc = "Buffers",
},
{
"<leader>F",
function()
Snacks.picker.files({ exclude = { "node_modules/", ".git/" }, hidden = true, auto_close = true })
end,
desc = "Find Files",
},
{
"<leader>t",
function()
Snacks.picker.explorer({ exclude = { "node_modules/", ".git/" }, hidden = true, auto_close = true })
end,
desc = "Explorer",
},
},
opts = {},
},
}