mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(image): remove ft check, since we use lang already. Closes #1177
This commit is contained in:
parent
100f8b00f8
commit
4bcd26aca8
1 changed files with 0 additions and 1 deletions
|
@ -820,7 +820,6 @@ function M.markdown(buf)
|
|||
vim.b[buf].snacks_image_attached = true
|
||||
local file = vim.api.nvim_buf_get_name(buf)
|
||||
local dir = vim.fs.dirname(file)
|
||||
assert(vim.bo[buf].filetype == "markdown", "`Image.markdown`: buf should be a markdown buffer")
|
||||
local parser = vim.treesitter.get_parser(buf)
|
||||
assert(parser, "`Image.markdown`: treesitter parser not found")
|
||||
parser:parse(true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue