tpope / vim-rails

rails.vim: Ruby on Rails power tools
http://www.vim.org/scripts/script.php?script_id=1567
4.1k stars 383 forks source link

Add highlights to embeds_one, embes_many and embedded_in #527

Closed PauloPhagula closed 4 years ago

PauloPhagula commented 6 years ago

It'd be nice if highlights were added for embeds_one, embeds_many and embedded_in used in Mongoid, in the same way there are highlights for has_one and has_many

kakas commented 4 years ago

just define syntax highlight by yourself

let g:rails_projections = {
      \   "app/models/*.rb": {
      \     "rubyMacro": ["embeds_one", "embeds_many", "embedded_in"],
      \   }
      \ }