Skip to content

Commit

Permalink
ftdetect: Add detection of just scripts by shebang
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 committed Oct 20, 2023
1 parent 3038ffa commit 3029bdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ftdetect/just.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
" URL: https://github.com/NoahTheDuke/vim-just.git
" Last Change: 2021 Aug 26
autocmd BufNewFile,BufRead \cjustfile,.justfile,*.just setfiletype just
autocmd BufNewFile,BufRead * if getline(1) =~# '\v^#!/%(\w|[/-])*\w/%(env%(\s+-S)?\s+)?just' | setfiletype just | endif

0 comments on commit 3029bdd

Please sign in to comment.