diff --git a/.config/kak/colors/ashen.kak b/.config/kak/colors/ashen.kak index 3d32239f..4c86f207 100644 --- a/.config/kak/colors/ashen.kak +++ b/.config/kak/colors/ashen.kak @@ -122,13 +122,6 @@ set-face global ts_keyword_storage_modifier_ref "%opt{red_ember}+i" set-face global ts_label "%opt{red_ember}" set-face global ts_markup_bold "+b" set-face global ts_markup_heading "%opt{red_glowing}+b" -# set-face global ts_markup_heading_1 -# set-face global ts_markup_heading_2 -# set-face global ts_markup_heading_3 -# set-face global ts_markup_heading_4 -# set-face global ts_markup_heading_5 -# set-face global ts_markup_heading_6 -# set-face global ts_markup_heading_marker set-face global ts_markup_italic "+i" set-face global ts_markup_list_checked "%opt{orange_glow}" set-face global ts_markup_list_numbered "%opt{orange_glow}" diff --git a/.config/kak/kakrc b/.config/kak/kakrc index cee7b2ad..956f29f2 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -12,6 +12,10 @@ hook global WinSetOption filetype=kak %{ set-option window formatcmd "%val{config}/scripts/kakfmt" } +hook global WinSetOption filetype=markdown %{ + set-option window formatcmd "dprint fmt --stdin md" +} + # open tutor (needs curl) define-command trampoline -docstring "open a tutorial" %{ evaluate-commands %sh{ @@ -39,6 +43,7 @@ map -docstring "paste the clipboard before" global user P "! wl-paste -n" map -docstring "replace with the clipboard" global user R '"_d! wl-paste -n' map -docstring "quit" global user q ":q" +map -docstring "save" global normal ": w" map -docstring "close current buffer" global user x ": db" map -docstring "goto previous buffer" global user m ": bp"