-
Notifications
You must be signed in to change notification settings - Fork 81
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Neovim version (nvim -v)
NVIM v0.11.0-dev-504+gaa853f362-dirty
Build type: Release
LuaJIT 2.1.1716656478
Operating system
Linux
Terminal emulator / GUI
kitty 0.35.2
Describe the bug
I have a markdown file with a code block containing # vim: ft=fstab (which is a valid file type). This triggers the following error when opening said markdown file with markdown.nvim enabled:
Error executing vim.schedule lua callback: /usr/share/nvim/runtime/lua/vim/treesitter/language.lua:107: no parser for 'fstab' language, see :help treesitter-parsers
stack traceback:
[C]: in function 'error'
/usr/share/nvim/runtime/lua/vim/treesitter/language.lua:107: in function 'add'
/usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:111: in function 'new'
/usr/share/nvim/runtime/lua/vim/treesitter.lua:41: in function '_create_parser'
/usr/share/nvim/runtime/lua/vim/treesitter.lua:108: in function 'get_parser'
...share/nvim/lazy/markdown.nvim/lua/render-markdown/ui.lua:119: in function 'parse_buffer'
...share/nvim/lazy/markdown.nvim/lua/render-markdown/ui.lua:74: in function 'render'
...share/nvim/lazy/markdown.nvim/lua/render-markdown/ui.lua:39: in function <...share/nvim/lazy/markdown.nvim/lua/render-markdown/ui.lua:33>To reproduce:
- Add
# vim: ft=fstab(also occurs with# vim: ft=zzzfor example) in a code block of a new markdown file - Open the markdown file with
markdown.nvimenabled - The error is triggered
Expected behavior
No error.
Healthcheck output
==============================================================================
render-markdown: require("render-markdown.health").check()
markdown.nvim [neovim version] ~
- OK Version >= 0.10
markdown.nvim [configuration] ~
- OK valid
markdown.nvim [nvim-treesitter] ~
- OK installed
- OK markdown: parser installed
- OK markdown: highlight enabled
- OK markdown_inline: parser installed
- OK markdown_inline: highlight enabled
- WARNING latex: parser not installed
- ADVICE:
- Disable LaTeX support to avoid this warning by setting { latex = { enabled = false } }
markdown.nvim [executables] ~
- WARNING latex2text: not installed
- ADVICE:
- Disable LaTeX support to avoid this warning by setting { latex = { enabled = false } }
markdown.nvim [conflicts] ~
- OK headlines: not installed
- OK obsidian: not installed
Plugin configuration
return {
"MeanderingProgrammer/markdown.nvim",
ft = "markdown",
opts = {},
}Confirmations
- I have provided markdown text for any screenshots used in my description & understand that my issue will be closed if I have not
Additional information
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working