Remove the -highlight suffix
This commit is contained in:
parent
50c0f9dbdd
commit
a4b8954934
|
@ -87,13 +87,13 @@ define-command -hidden lint-show-counters %{
|
|||
}
|
||||
|
||||
define-command lint-enable -docstring "Activate automatic diagnostics of the code" %{
|
||||
add-highlighter window/lint-highlighter flag_lines default lint_flags
|
||||
add-highlighter window/lint flag_lines default lint_flags
|
||||
hook window -group lint-diagnostics NormalIdle .* %{ lint-show }
|
||||
hook window -group lint-diagnostics WinSetOption lint_flags=.* %{ info; lint-show }
|
||||
}
|
||||
|
||||
define-command lint-disable -docstring "Disable automatic diagnostics of the code" %{
|
||||
remove-highlighter window/lint-highlighter
|
||||
remove-highlighter window/lint
|
||||
remove-hooks window lint-diagnostics
|
||||
}
|
||||
|
||||
|
|
|
@ -2,20 +2,20 @@ declare-option -docstring "name of the client in which documentation is to be di
|
|||
str docsclient
|
||||
|
||||
hook -group git-log-highlight global WinSetOption filetype=git-log %{
|
||||
add-highlighter window/git-log-highlight group
|
||||
add-highlighter window/git-log-highlight/ regex '^(commit) ([0-9a-f]+)$' 1:yellow 2:red
|
||||
add-highlighter window/git-log-highlight/ regex '^([a-zA-Z_-]+:) (.*?)$' 1:green 2:magenta
|
||||
add-highlighter window/git-log-highlight/ ref diff # highlight potential diffs from the -p option
|
||||
add-highlighter window/git-log group
|
||||
add-highlighter window/git-log/ regex '^(commit) ([0-9a-f]+)$' 1:yellow 2:red
|
||||
add-highlighter window/git-log/ regex '^([a-zA-Z_-]+:) (.*?)$' 1:green 2:magenta
|
||||
add-highlighter window/git-log/ ref diff # highlight potential diffs from the -p option
|
||||
}
|
||||
|
||||
hook -group git-log-highlight global WinSetOption filetype=(?!git-log).* %{ remove-highlighter window/git-log-highlight }
|
||||
hook -group git-log-highlight global WinSetOption filetype=(?!git-log).* %{ remove-highlighter window/git-log }
|
||||
|
||||
hook -group git-status-highlight global WinSetOption filetype=git-status %{
|
||||
add-highlighter window/git-status-highlight group
|
||||
add-highlighter window/git-status-highlight/ regex '^\h+(?:((?:both )?modified:)|(added:|new file:)|(deleted(?: by \w+)?:)|(renamed:)|(copied:))(?:.*?)$' 1:yellow 2:green 3:red 4:cyan 5:blue 6:magenta
|
||||
add-highlighter window/git-status group
|
||||
add-highlighter window/git-status/ regex '^\h+(?:((?:both )?modified:)|(added:|new file:)|(deleted(?: by \w+)?:)|(renamed:)|(copied:))(?:.*?)$' 1:yellow 2:green 3:red 4:cyan 5:blue 6:magenta
|
||||
}
|
||||
|
||||
hook -group git-status-highlight global WinSetOption filetype=(?!git-status).* %{ remove-highlighter window/git-status-highlight }
|
||||
hook -group git-status-highlight global WinSetOption filetype=(?!git-status).* %{ remove-highlighter window/git-status }
|
||||
|
||||
declare-option -hidden line-specs git_blame_flags
|
||||
declare-option -hidden line-specs git_diff_flags
|
||||
|
@ -63,7 +63,7 @@ Available commands:\n add\n rm\n blame\n commit\n checkout\n diff\n hide-
|
|||
run_git_blame() {
|
||||
(
|
||||
printf %s "evaluate-commands -client '$kak_client' %{
|
||||
try %{ add-highlighter window/git-blame-highlight flag_lines GitBlame git_blame_flags }
|
||||
try %{ add-highlighter window/git-blame flag_lines GitBlame git_blame_flags }
|
||||
set-option buffer=$kak_bufname git_blame_flags '$kak_timestamp'
|
||||
}" | kak -p ${kak_session}
|
||||
git blame "$@" --incremental ${kak_buffile} | awk '
|
||||
|
@ -181,11 +181,11 @@ Available commands:\n add\n rm\n blame\n commit\n checkout\n diff\n hide-
|
|||
hide-blame)
|
||||
printf %s "try %{
|
||||
set-option buffer=$kak_bufname git_blame_flags ''
|
||||
remove-highlighter window/git-blame-highlight
|
||||
remove-highlighter window/git-blame
|
||||
}"
|
||||
;;
|
||||
show-diff)
|
||||
echo 'try %{ add-highlighter window/git-diff-highlight flag_lines GitDiffFlags git_diff_flags }'
|
||||
echo 'try %{ add-highlighter window/git-diff flag_lines GitDiffFlags git_diff_flags }'
|
||||
update_diff
|
||||
;;
|
||||
update-diff) update_diff ;;
|
||||
|
|
Loading…
Reference in New Issue
Block a user