dotfiles/vim/plugins/vim-elixir-master/ftdetect/elixir.vim
Jeff Clement 931e9d4aee
mise++
2025-03-08 20:32:06 -07:00

8 lines
311 B
VimL

au BufRead,BufNewFile *.lexs set filetype=elixir "File extension used by https://github.com/mhanberg/temple
au BufRead,BufNewFile * call s:DetectElixir()
function! s:DetectElixir()
if (!did_filetype() || &filetype !=# 'elixir') && getline(1) =~# '^#!.*\<elixir\>'
set filetype=elixir
endif
endfunction