diff options
author | tv <tv@krebsco.de> | 2016-07-03 20:48:15 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-07-03 20:48:15 +0200 |
commit | 021f4270cec8e511174117685f2b1155d2daa43d (patch) | |
tree | 8fddc657c8d3a5f9a21cb546a9b98611cfcc74f3 /tv | |
parent | 06c7ca4b4a9fa0c8e9f5e55a29c7797720e56c16 (diff) |
tv vim: add jq syntax
Diffstat (limited to 'tv')
-rw-r--r-- | tv/2configs/vim.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 6c27754..0a84662 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -17,6 +17,14 @@ let 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 { url = git://github.com/bogado/file-line; @@ -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 ''\|'' [ |