Replies: 3 comments
vim.schedule(function()
local image_doc = require 'snacks.image.doc'
local attach = image_doc.attach
image_doc.attach = function(buf) ---@diagnostic disable-line
if vim.bo[buf].ft:match 'react' then
return
end
attach(buf)
end
end) |
|
This is not configurable yet, but I believe it would make a good candidate for a feature request. A naive solution would be to add a property I'm not sure though if that covers all the cases or has some other side-effect as I'm not that familiar with |
|
@drowning-cat @dpetka2001, thank you for answering my question, I will try it. |
Uh oh!
There was an error while loading. Please reload this page.
I want to disable snack image in .jsx and .tsx file but don't know how to do that. Anyone know the solution?
All reactions