-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syntax highlighting broken for .*eex
files
#562
Comments
My syntax highlighting is also broken with that recent change. My computer now goes back and reads these files as euphoria3 instead of elixir. Edit: FWIW, it is broken for .ex and .exs files as well, on my end. For now, I just added the removed lines from that latest commit into my .vimrc and it's back to perfection. |
@dekkofilms which version of vim/neovim are you using? |
@superhawk610 my vim version is 8.2 |
I'm on latest master NeoVim and had to manually revert that commit on my local install for syntax highlighting and indentation to come back for .heex files. |
as @dekkofilms mentioned, adding the following to
|
Running with
|
I've sent the following PRs to vim and neovim: |
This happened to me too with Vim 8.1. I ended up reverting this plugin to an older version for now. |
Copying this here since it seemed relevant:
via @connorlay, from the PR linked above to vim link |
Hello, what's the status of the issue? Will it be fixed here in |
the @RTLS recomendation worked for me. Another option is to use nvim-treesitter/nvim-treesitter install that was not so obvious for me, so here my steps add the plugin to your
and install it
enable the highlight in your
and finally install elixir
|
it because vim-elixir doesnt' have support for heex, read more about it here elixir-editors/vim-elixir#562
For neovim users with lua configs, adding this to my init.lua resolved it for me. vim.filetype.add({
extension = {
heex = "eelixir",
eex = "eelixir",
leex = "eelixir",
sface = "eelixir",
lexs = "eelixir",
}
}) |
After the recent change that removed ftdetect, syntax highlighting is no longer working for
.*eex
files (.heex
,.leex
, etc). It appears that the default filetype detection marks these files as e.g.ft=heex
instead offt=eelixir
, as the previousftdetect
plugin did.Actual
Expected
If I run
set ft=eelixir
, I get this:However, if I first run
let b:eelixir_subtype = 'heex'
, I get this:Not sure which of these is correct.
The text was updated successfully, but these errors were encountered: