about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/vim/ft-nix-support.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/editors/vim/ft-nix-support.patch')
-rw-r--r--nixpkgs/pkgs/applications/editors/vim/ft-nix-support.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/editors/vim/ft-nix-support.patch b/nixpkgs/pkgs/applications/editors/vim/ft-nix-support.patch
new file mode 100644
index 000000000000..274d855731fd
--- /dev/null
+++ b/nixpkgs/pkgs/applications/editors/vim/ft-nix-support.patch
@@ -0,0 +1,20 @@
+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
++
++