Skip to content

Commit

Permalink
preview: run filetype detection after updating runtimepath
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 committed Feb 7, 2024
1 parent 3b8f055 commit 504ac9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ test_cases := justfile_directory() / 'tests/cases'
@_default:
{{justq}} --list

synpreview_rtp := '-c ' + quote("let &runtimepath=\"" + justfile_directory() + ",\" . &runtimepath")
synpreview_rtp := '-c ' + \
quote("let &runtimepath=\"" + justfile_directory() + ",\" . &runtimepath") + \
" -c 'filetype detect'"

# preview JUSTFILE in Vim with syntax file from this repository
[no-cd]
Expand Down

0 comments on commit 504ac9a

Please sign in to comment.