summaryrefslogtreecommitdiffstats
path: root/syntax/tmux.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-11-18 20:33:42 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2020-11-18 20:33:42 +0100
commitc228e993ad6a8b79db5a5a77aecfdbd8e92ea31f (patch)
treed446251a71a681285c17b5fb000b0d3b1090ef2c /syntax/tmux.vim
parentda18fe6851e95e146016f7abd2f799056e074cd9 (diff)
downloadvim-polyglot-c228e993ad6a8b79db5a5a77aecfdbd8e92ea31f.tar.gz
vim-polyglot-c228e993ad6a8b79db5a5a77aecfdbd8e92ea31f.zip
Update
Diffstat (limited to 'syntax/tmux.vim')
-rw-r--r--syntax/tmux.vim17
1 files changed, 10 insertions, 7 deletions
diff --git a/syntax/tmux.vim b/syntax/tmux.vim
index a0b90496..46336f25 100644
--- a/syntax/tmux.vim
+++ b/syntax/tmux.vim
@@ -3,7 +3,7 @@ if has_key(g:polyglot_is_disabled, 'tmux')
endif
" Language: tmux(1) configuration file
-" Version: 3.1b (git-769ae106)
+" Version: 3.2-rc (git-e94bd5cc)
" URL: https://github.com/ericpruitt/tmux.vim/
" Maintainer: Eric Pruitt <eric.pruitt@gmail.com>
" License: 2-Clause BSD (http://opensource.org/licenses/BSD-2-Clause)
@@ -59,13 +59,16 @@ hi def link tmuxTodo Todo
hi def link tmuxVariable Identifier
hi def link tmuxVariableExpansion Identifier
-" Make the foreground of colourXXX keywords match the color they represent.
+" Make the foreground of colourXXX keywords match the color they represent
+" when g:tmux_syntax_colors is unset or set to a non-zero value.
" Darker colors have their background set to white.
-for s:i in range(0, 255)
- let s:bg = (!s:i || s:i == 16 || (s:i > 231 && s:i < 235)) ? 15 : "none"
- exec "syn match tmuxColour" . s:i . " /\\<colour" . s:i . "\\>/ display"
-\ " | highlight tmuxColour" . s:i . " ctermfg=" . s:i . " ctermbg=" . s:bg
-endfor
+if get(g:, "tmux_syntax_colors", 1)
+ for s:i in range(0, 255)
+ let s:bg = (!s:i || s:i == 16 || (s:i > 231 && s:i < 235)) ? 15 : "none"
+ exec "syn match tmuxColour" . s:i . " /\\<colour" . s:i . "\\>/ display"
+\ " | highlight tmuxColour" . s:i . " ctermfg=" . s:i . " ctermbg=" . s:bg
+ endfor
+endif
syn keyword tmuxOptions
\ backspace buffer-limit command-alias copy-command default-terminal editor