|
|
|
@ -12,7 +12,6 @@ decl -hidden regex curword
@@ -12,7 +12,6 @@ decl -hidden regex curword
|
|
|
|
|
set global ui_options ncurses_assistant=none |
|
|
|
|
set global scrolloff 7,7 |
|
|
|
|
set global autoreload yes |
|
|
|
|
set global kitty_window_type kitty |
|
|
|
|
set global grepcmd 'rg -iHL --column' |
|
|
|
|
set global modelinefmt '%opt{modeline_git_branch} %val{bufname} |
|
|
|
|
%val{cursor_line}:%val{cursor_char_column} {{mode_info}} |
|
|
|
@ -57,10 +56,10 @@ map global normal -docstring 'comment block' '<a-#>' ': comment-block<ret>'
@@ -57,10 +56,10 @@ map global normal -docstring 'comment block' '<a-#>' ': comment-block<ret>'
|
|
|
|
|
map global normal -docstring 'delete to end of line' D <a-l>d |
|
|
|
|
map global normal -docstring 'yank to end of line' Y <a-l> |
|
|
|
|
|
|
|
|
|
map global user -docstring 'add phantom selection' f ': phantom-sel-add-selection<ret>' |
|
|
|
|
map global user -docstring 'clear all phantom selections' <a-f> ': phantom-sel-select-all<ret>: phantom-sel-clear<ret>' |
|
|
|
|
map global user -docstring 'next phantom selection' F ': phantom-sel-iterate-next<ret>' |
|
|
|
|
map global user -docstring 'previous phantom selection' <a-F> ': phantom-sel-iterate-prev<ret>' |
|
|
|
|
map global user -docstring 'add phantom selection' f ': phantom-selection-add-selection<ret>' |
|
|
|
|
map global user -docstring 'clear all phantom selections' <a-f> ': phantom-selection-select-all<ret>: phantom-selection-clear<ret>' |
|
|
|
|
map global user -docstring 'next phantom selection' F ': phantom-selection-iterate-next<ret>' |
|
|
|
|
map global user -docstring 'previous phantom selection' <a-F> ': phantom-selection-iterate-prev<ret>' |
|
|
|
|
|
|
|
|
|
map global normal -docstring 'select view' <a-%> ': select-view<ret>' |
|
|
|
|
map global view -docstring 'select view' s '<esc>: select-view<ret>' |
|
|
|
@ -120,6 +119,10 @@ def toggle-highlighter -params .. -docstring 'Toggle highlighter' %{
@@ -120,6 +119,10 @@ def toggle-highlighter -params .. -docstring 'Toggle highlighter' %{
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
def type -params 1 -docstring 'Set buffer filetype' %{ |
|
|
|
|
set buffer filetype %arg{1} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
def lint-on-write -docstring 'Activate linting on buffer write' %{ |
|
|
|
|
lint-enable |
|
|
|
|
hook buffer BufWritePost .* lint |
|
|
|
@ -155,6 +158,10 @@ def clean-trailing-whitespace -docstring 'Remove trailing whitespace' %{
@@ -155,6 +158,10 @@ def clean-trailing-whitespace -docstring 'Remove trailing whitespace' %{
|
|
|
|
|
|
|
|
|
|
# Hooks |
|
|
|
|
|
|
|
|
|
hook global ModuleLoad kitty %{ |
|
|
|
|
set global kitty_window_type kitty |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
hook global WinDisplay .* info-buffers |
|
|
|
|
hook global NormalIdle .* %{ try %{ exec -draft '<a-i>w: palette-status<ret>' } } |
|
|
|
|
hook global BufWritePost .* %{ git show-diff } |
|
|
|
|