summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-08-23 19:46:00 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-08-23 19:46:00 +0900
commitb5f4d63376025620ff0bde6e45d855c18c8a62b9 (patch)
tree13d2d4c40415f1f17b768b0aa27d5aecf48ecdf3
parentda251231679f15ca38bf7b92d119c05d2ee93b7f (diff)
modified plugins/markdown.lua
-rw-r--r--mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/markdown.lua18
1 files changed, 16 insertions, 2 deletions
diff --git a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/markdown.lua b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/markdown.lua
index 0b5fb5c..dc96a9e 100644
--- a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/markdown.lua
+++ b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/markdown.lua
@@ -1,3 +1,16 @@
+local sysname = vim.loop.os_uname().sysname
+local backend, build, processor
+
+if sysname == "Darwin" then
+ backend = "kitty"
+ processor = "magick_cli"
+ build = false
+else
+ backend = "ueberzug"
+ processor = "magick_rock"
+ build = true
+end
+
-- Select the current cell
local function select_cell()
local bufnr = vim.api.nvim_get_current_buf()
@@ -337,11 +350,12 @@ return {
{ "benlubas/image-save.nvim", cmd = "SaveImage" },
{
"3rd/image.nvim",
+ build = build,
dependencies = { "leafo/magick", "vhyrro/luarocks.nvim" },
config = function()
require("image").setup({
- backend = "ueberzug", -- or "kitty", whatever backend you would like to use
- processor = "magick_rock", -- or "magick_cli"
+ backend = backend, -- "ueberzug" or "kitty", whatever backend you would like to use
+ processor = processor, -- "magick_rock" or "magick_cli"
integrations = {
markdown = {
enabled = true,