Merge remote-tracking branch 'lenormf/syntax-systemd'

This commit is contained in:
Maxime Coste 2018-08-19 08:02:04 +10:00
commit 2e138c835a

View File

@ -6,4 +6,9 @@
hook global BufCreate .*/systemd/.+\.(automount|conf|link|mount|network|path|service|slice|socket|target|timer) %{ hook global BufCreate .*/systemd/.+\.(automount|conf|link|mount|network|path|service|slice|socket|target|timer) %{
set-option buffer filetype ini set-option buffer filetype ini
# NOTE: INI files define the commenting character to be `;`, which won't work in `systemd` files
hook -once buffer BufSetOption comment_line=.+ %{
set-option buffer comment_line "#"
}
} }