diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2015-12-17 10:47:00 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2015-12-17 10:49:17 +0100 |
commit | ad44c4f7a316e798a9354197b20a80eabf280f1a (patch) | |
tree | d68b73b60b73d19bf3e83d8e0f807fbae406cffd /ftdetect/polyglot.vim | |
parent | 3c56c1c7cd051cc7ac7cea0ad66748d8afe1a3cb (diff) | |
download | vim-polyglot-ad44c4f7a316e798a9354197b20a80eabf280f1a.tar.gz vim-polyglot-ad44c4f7a316e798a9354197b20a80eabf280f1a.zip |
Add nix support, closes #97
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r-- | ftdetect/polyglot.vim | 4 |
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 |