nixpkgs/pkgs/applications/editors/vim/ft-nix-support.patch

21 lines
435 B
Diff
Raw Normal View History

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index a8e6261..2b008fc 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2258,6 +2258,9 @@ au BufNewFile,BufRead *.zsql call s:SQL()
" Z80 assembler asz80
au BufNewFile,BufRead *.z8a setf z8a
+" Nix
+au BufNewFile,BufRead *.nix setf nix
+
augroup END
@@ -2440,3 +2443,5 @@ endfunc
" Restore 'cpoptions'
let &cpo = s:cpo_save
unlet s:cpo_save
+
+