summaryrefslogtreecommitdiffstats
path: root/ftdetect/polyglot.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2015-12-17 10:47:00 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2015-12-17 10:47:00 +0100
commit7cbd509b6ca5522b33c8bf299468ec1be9052416 (patch)
tree129a1ab8dc1d1ecbcbb7797936a58d79fbd75851 /ftdetect/polyglot.vim
parentf025e2778afb8bd324a7b8c6b7712346e7df0951 (diff)
downloadvim-polyglot-7cbd509b6ca5522b33c8bf299468ec1be9052416.tar.gz
vim-polyglot-7cbd509b6ca5522b33c8bf299468ec1be9052416.zip
Add nix support, closes #97
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r--ftdetect/polyglot.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 9bd0f1c8..fdb540e2 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -254,6 +254,10 @@ au BufRead,BufNewFile */etc/nginx/* set ft=nginx
au BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx
au BufRead,BufNewFile nginx.conf set ft=nginx
endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1
+
+autocmd BufNewFile,BufRead *.nix setfiletype nix
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'opencl') == -1
au! BufRead,BufNewFile *.cl set filetype=opencl