AutoYADM commit: 2024-12-21 15:45:05
This commit is contained in:
parent
fe0cf442c2
commit
d38da98b4e
2 changed files with 5 additions and 0 deletions
|
@ -48,8 +48,10 @@ return {
|
||||||
local m = require("render-markdown")
|
local m = require("render-markdown")
|
||||||
if enabled then
|
if enabled then
|
||||||
m.enable()
|
m.enable()
|
||||||
|
Snacks.indent.disable()
|
||||||
else
|
else
|
||||||
m.disable()
|
m.disable()
|
||||||
|
Snacks.indent.enable()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
}):map("<leader>um")
|
}):map("<leader>um")
|
||||||
|
|
|
@ -4,6 +4,9 @@ return {
|
||||||
indent = {
|
indent = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
only_current = true,
|
only_current = true,
|
||||||
|
filter = function(buf)
|
||||||
|
return vim.g.snacks_indent ~= false and vim.b[buf].snacks_indent ~= false and vim.bo[buf].buftype == ""
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue