Skip to content

Commit

Permalink
Fix loading setting and syntax files multiple times
Browse files Browse the repository at this point in the history
Read `:h :setf`
  • Loading branch information
monkoose committed Mar 21, 2022
1 parent 4242b56 commit fb3563d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftdetect/fennel.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ fun! s:DetectFennel()
endif
endfun

autocmd BufRead,BufNewFile *.fnl setlocal filetype=fennel
autocmd BufRead,BufNewFile *.fnl setfiletype fennel
autocmd BufNewFile,BufRead * call s:DetectFennel()

0 comments on commit fb3563d

Please sign in to comment.