AutoYADM commit: 2025-06-26 14:44:47
This commit is contained in:
parent
2dd6e745af
commit
5591115248
3 changed files with 16 additions and 7 deletions
|
@ -82,13 +82,13 @@ hook global WinSetOption filetype=latex %{
|
|||
set-option window formatcmd "tex-fmt --stdin"
|
||||
set-option window autowrap_fmtcmd 'tex-fmt --stdin -l %c'
|
||||
set-option window autowrap_format_paragraph true
|
||||
hook -group latex-auto-format window BufWritePre .* %{
|
||||
try format
|
||||
}
|
||||
hook -once -always window WinSetOption filetype=.* %{
|
||||
unset-option window formatcmd
|
||||
remove-hooks window latex-auto-format
|
||||
}
|
||||
# hook -group latex-auto-format window BufWritePre .* %{
|
||||
# try format
|
||||
# }
|
||||
# hook -once -always window WinSetOption filetype=.* %{
|
||||
# unset-option window formatcmd
|
||||
# remove-hooks window latex-auto-format
|
||||
# }
|
||||
# declare-filetype-mode latex
|
||||
# map window latex i
|
||||
}
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
## kak-search-highlight: interactive highlighting of search terms
|
||||
## Author: Daniel Fichtinger <daniel@ficd.ca> sr.ht/~ficd
|
||||
## License: ISC
|
||||
|
||||
provide-module search-highlight %—
|
||||
## begin public options
|
||||
declare-option -docstring %{
|
||||
|
@ -36,10 +40,12 @@ provide-module search-highlight %—
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
# remove the plugin's hooks
|
||||
define-command -hidden search-highlight-disable-impl %{
|
||||
remove-hooks window search-highlight
|
||||
}
|
||||
|
||||
## begin public commands
|
||||
define-command -docstring %{
|
||||
Enable search highlighting. Press <esc> in normal mode to clear
|
||||
|
|
|
@ -155,7 +155,10 @@ hook global WinCreate .* %{
|
|||
# and it makes it easy to see trailing spaces
|
||||
add-highlighter window/show-whitespaces show-whitespaces -only-trailing
|
||||
add-highlighter window/show-matching show-matching
|
||||
# TODO: update plugin so it auto clears if escaped out of search,
|
||||
# but if search is accepted then auto clear on <esc> in normal mode?
|
||||
require-module search-highlight
|
||||
set window search_highlight_face %exp{%opt{orange_golden}+u}
|
||||
search-highlight-enable
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue