summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-04-23 23:43:07 +0300
committerKyren223 <Kyren223@proton.me>2025-04-23 23:43:07 +0300
commit996a61f2ddcf137bf2ed2ff62de6472417501cf9 (patch)
tree42dfe80ea52894b900a4dae69d0188ca4655988a /.config
parent99d0715a41d63d572f52f8d3e73e15e364b0e8f9 (diff)
Added snacks to display images in nvim (needs ghostty)
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/lazy-lock.json1
-rw-r--r--.config/nvim/lua/custom/plugins/snacks.lua20
2 files changed, 21 insertions, 0 deletions
diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json
index 1b478e2..51b9c44 100644
--- a/.config/nvim/lazy-lock.json
+++ b/.config/nvim/lazy-lock.json
@@ -67,6 +67,7 @@
"pretty_hover": { "branch": "master", "commit": "620aa2f9b626784efe44f515905181381d167d44" },
"render-markdown.nvim": { "branch": "main", "commit": "642222acbab66d56727ac0f38d9432649a479ed4" },
"rustaceanvim": { "branch": "master", "commit": "e9c5aaba16fead831379d5f44617547a90b913c7" },
+ "snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" },
"spring-boot.nvim": { "branch": "main", "commit": "218c0c26c14d99feca778e4d13f5ec3e8b1b60f0" },
"sqls.nvim": { "branch": "main", "commit": "d1bc5421ef3e8edc5101e37edbb7de6639207a09" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
diff --git a/.config/nvim/lua/custom/plugins/snacks.lua b/.config/nvim/lua/custom/plugins/snacks.lua
new file mode 100644
index 0000000..c5bda80
--- /dev/null
+++ b/.config/nvim/lua/custom/plugins/snacks.lua
@@ -0,0 +1,20 @@
+return {
+ 'folke/snacks.nvim',
+ ---@type snacks.Config
+ opts = {
+ image = {
+ -- your image configuration comes here
+ -- or leave it empty to use the default settings
+ -- refer to the configuration section below
+ },
+ },
+ keys = {
+ {
+ '<leader>si',
+ function()
+ require('snacks').image.hover()
+ end,
+ },
+ },
+ lazy = false,
+}