From 5d3dcda204fe0db223dde64f165db008019c4903 Mon Sep 17 00:00:00 2001 From: Itay Shalev Date: Sun, 5 Apr 2026 22:57:42 +0300 Subject: [PATCH] feat: add folke/snacks.nvim plugin --- lazy-lock.json | 1 + lua/custom/plugins/snacks.lua | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 lua/custom/plugins/snacks.lua diff --git a/lazy-lock.json b/lazy-lock.json index 21dc590f..ebc52c14 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -17,6 +17,7 @@ "nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" }, "nvim-web-devicons": { "branch": "master", "commit": "40e9d5a6cc3db11b309e39593fc7ac03bb844e38" }, "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, + "snacks.nvim": { "branch": "main", "commit": "ad9ede6a9cddf16cedbd31b8932d6dcdee9b716e" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "6fea601bd2b694c6f2ae08a6c6fab14930c60e2c" }, "telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" }, "telescope.nvim": { "branch": "master", "commit": "cfb85dcf7f822b79224e9e6aef9e8c794211b20b" }, diff --git a/lua/custom/plugins/snacks.lua b/lua/custom/plugins/snacks.lua new file mode 100644 index 00000000..d4deac5b --- /dev/null +++ b/lua/custom/plugins/snacks.lua @@ -0,0 +1,25 @@ +return { + 'folke/snacks.nvim', + priority = 1000, + lazy = false, + ---@type snacks.Config + opts = { + -- Enable the image plugin + image = { + enabled = true, + doc = { + -- This allows images to render directly inside Markdown files + inline = true, + -- This shows a floating preview when hovering over an image path + float = true, + max_width = 80, + max_height = 40, + }, + }, + + bigfile = { enabled = true }, + notifier = { enabled = true }, + quickfile = { enabled = true }, + words = { enabled = true }, + }, +}