From 672fc99c796a4c2fe41efd79462a86142ecc2e76 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 3 Jul 2016 20:48:15 +0200 Subject: tv vim: add jq syntax --- tv/2configs/vim.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tv/2configs') diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 6c277542d..0a8466202 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -16,6 +16,14 @@ let extra-runtimepath = concatMapStringsSep "," (pkg: "${pkg.rtp}") [ pkgs.vimPlugins.ctrlp pkgs.vimPlugins.undotree + (pkgs.vimUtils.buildVimPlugin { + name = "vim-syntax-jq"; + src = pkgs.fetchgit { + url = https://github.com/vito-c/jq.vim; + rev = "99d55a300047946a82ecdd7617323a751199ad2d"; + sha256 = "00mmwg4swwmllknzzx07af080lcy7y5i6341rc6c08i2vka48nv9"; + }; + }) (pkgs.vimUtils.buildVimPlugin { name = "file-line-1.0"; src = pkgs.fetchgit { @@ -211,6 +219,10 @@ let cabal = {}; diff = {}; haskell = {}; + jq.extraStart = concatStringsSep ''\|'' [ + ''writeJq.*'' + ''write[^ \t\r\n]*[ \t\r\n]*"[^"]*\.jq"'' + ]; lua = {}; sed.extraStart = ''writeSed[^ \t\r\n]*[ \t\r\n]*"[^"]*"''; sh.extraStart = concatStringsSep ''\|'' [ -- cgit v1.2.3