Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I'm using rails.vim, and one thing it does is set config/**/*.yaml files to eruby.yaml because some YAML files support ERB interpretation. The problem I'm seeing is these end up with no syntax highlighting, while just filetype=yaml works no problem.
It seems to be nvim-treesitter doesn't support yet based on this issue: Embedded templates: ERB, EEX.
Is there a way to disable treesitter just for this file? I think the standard vim syntax highlighting, or if not vim-ruby should support it.
require("nvim-treesitter.configs").setup({ highlight = { enable = true, disable = function(lang, _) -- eruby.yaml not supported https://github.com/windwp/nvim-ts-autotag/issues/73 return lang == "eruby.yaml" end, },
Related posts
- Bram: "Neovim has included Treesitter, which is an implementation of this. Once Vim9 is done I'll have a look at whether it is a good choice to include with Vim"
- Django Plus for Vim
- JetBrains' unremovable AI assistant meets irresistible outcry
- vim-dadbod-completion not working
- I was wrong about Vim and Neovim