summaryrefslogtreecommitdiffstats
path: root/compiler/nix-build.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2018-10-08 19:00:59 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2018-10-08 19:00:59 +0200
commitfd74d8b2b170b540680a9bbf6c64990f8ebafd08 (patch)
treeb1fdef6203a78a21053d1b8e0666ab7a38c36df2 /compiler/nix-build.vim
parent055f7710b65dfa2df52fc0b5be2486ae36ac5751 (diff)
downloadvim-polyglot-fd74d8b2b170b540680a9bbf6c64990f8ebafd08.tar.gz
vim-polyglot-fd74d8b2b170b540680a9bbf6c64990f8ebafd08.zip
Updatev3.3.3
Diffstat (limited to 'compiler/nix-build.vim')
-rw-r--r--compiler/nix-build.vim15
1 files changed, 15 insertions, 0 deletions
diff --git a/compiler/nix-build.vim b/compiler/nix-build.vim
new file mode 100644
index 00000000..bd8791f7
--- /dev/null
+++ b/compiler/nix-build.vim
@@ -0,0 +1,15 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1
+
+if exists('current_compiler')
+ finish
+endif
+let current_compiler = 'nix-build'
+
+if exists(":CompilerSet") != 2
+ command -nargs=* CompilerSet setlocal <args>
+endif
+
+CompilerSet errorformat=error:\ %m\ at\ %f:%l:%c,builder\ for\ \'%m\'\ failed\ with\ exit\ code\ %n,fixed-output\ derivation\ produced\ path\ \'%s\'\ with\ %m
+CompilerSet makeprg=nix-build
+
+endif