Syntax highlighting for eruby.yaml with rails.vim

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • vim-rails

    rails.vim: Ruby on Rails power tools

  • 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.

  • nvim-treesitter

    Nvim Treesitter configurations and abstraction layer

  • It seems to be nvim-treesitter doesn't support yet based on this issue: Embedded templates: ERB, EEX.

  • 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.

    WorkOS logo
  • vim-ruby

    Vim/Ruby Configuration Files

  • 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.

  • nvim-ts-closetag

    Use treesitter to auto close and auto rename html tag

  • 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, },

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts