diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-04-23 23:43:07 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-04-23 23:43:07 +0300 |
| commit | 996a61f2ddcf137bf2ed2ff62de6472417501cf9 (patch) | |
| tree | 42dfe80ea52894b900a4dae69d0188ca4655988a | |
| parent | 99d0715a41d63d572f52f8d3e73e15e364b0e8f9 (diff) | |
Added snacks to display images in nvim (needs ghostty)
| -rw-r--r-- | .config/nvim/lazy-lock.json | 1 | ||||
| -rw-r--r-- | .config/nvim/lua/custom/plugins/snacks.lua | 20 | ||||
| -rw-r--r-- | hosts/home.nix | 1 |
3 files changed, 22 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, +} diff --git a/hosts/home.nix b/hosts/home.nix index ac9520e..25ea187 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -83,6 +83,7 @@ libisoburn ncdu imagemagick + ghostscript # for imagemagick to support pdf files xxd gnome-clocks duf |
