From 65adece0353894df7450a86c60c7936a31ba7fb8 Mon Sep 17 00:00:00 2001 From: aszlig Date: Sat, 3 Aug 2019 03:22:02 +0200 Subject: vim: Add syntax highlighting for Xdebug traces Unfortunately these days I have to debug a lot of PHP code, so having syntax highlighting (even though the syntax file is pretty terse) and being able to fold Xdebug traces is quite useful to have. Signed-off-by: aszlig --- pkgs/aszlig/vim/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'pkgs/aszlig') diff --git a/pkgs/aszlig/vim/default.nix b/pkgs/aszlig/vim/default.nix index 00906802..ddad7979 100644 --- a/pkgs/aszlig/vim/default.nix +++ b/pkgs/aszlig/vim/default.nix @@ -344,6 +344,18 @@ let install -vD -m 0644 ext/Vim/jinja.vim "$out/syntax/jinja.vim" ''; }; + + xdebug = fetchurl { + name = "vim-xt-syntax"; + url = "https://raw.githubusercontent.com/xdebug/xdebug/" + + "ce4f6bc7ae04ae542960af6c1b8975888e9c3e5e/contrib/xt.vim"; + sha256 = "05a3nry310s2w1h2q7w6yw2wick81jrnrs43x9vk0k7dqyavhvhi"; + downloadToTemp = true; + recursiveHash = true; + postFetch = '' + install -vD -m 0644 "$downloadedFile" "$out/syntax/xt.vim" + ''; + }; }; generic = '' @@ -410,6 +422,7 @@ let " filetype defaults au BufNewFile,BufRead *.as setlocal ft=actionscript au BufNewFile,BufRead *.tt setlocal ft=tt2html ts=2 sw=2 sts=2 et + au BufNewFile,BufRead *.xt setlocal ft=xt foldlevel=4 au BufNewFile,BufRead *.html setlocal ts=2 sw=2 sts=2 et au FileType python setlocal textwidth=79 au FileType gitcommit setlocal textwidth=72 -- cgit 1.4.1