Skip to content

Commit 8f35c74

Browse files
committed
Remove ftdetect
Elixir and all of the most popular template syntaxes (LEEx, HEEx, Surface) are included in Vim and Neovim's native filetype detection and now longer have to provided by a plugin. I noticed the FileType event was being emitted twice when opening Elixir files, which was causing me some problems. This should fix that. This also switches the .lexs extension for eelixir to elixir, as that those files are have elixir in them, not eelixir.
1 parent ff7a122 commit 8f35c74

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: ftdetect/elixir.vim

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
au BufRead,BufNewFile *.ex,*.exs set filetype=elixir
2-
au BufRead,BufNewFile *.eex,*.heex,*.leex,*.sface,*.lexs set filetype=eelixir
3-
au BufRead,BufNewFile mix.lock set filetype=elixir
1+
au BufRead,BufNewFile *.lexs set filetype=elixir "File extension used by https://github.com/mhanberg/temple
42
au BufRead,BufNewFile * call s:DetectElixir()
53

64
function! s:DetectElixir()

0 commit comments

Comments
 (0)