summaryrefslogtreecommitdiff
path: root/config/kak
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-05-17 17:21:21 -0500
committerMarc Coquand <marc@mccd.space>2024-05-17 17:21:21 -0500
commit6ab72d656c2030dbe685f0a3ab9549edb3634e88 (patch)
treed051c4b7121f7155553bd3f0232d10de971e88f4 /config/kak
parent5933406a6a420baca6e00ab73b258702184b98ca (diff)
downloadrcm-6ab72d656c2030dbe685f0a3ab9549edb3634e88.tar.gz
rcm-6ab72d656c2030dbe685f0a3ab9549edb3634e88.tar.bz2
rcm-6ab72d656c2030dbe685f0a3ab9549edb3634e88.zip
Updates
Diffstat (limited to 'config/kak')
-rw-r--r--config/kak/kakrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/kak/kakrc b/config/kak/kakrc
index 26b0a88..72fd200 100644
--- a/config/kak/kakrc
+++ b/config/kak/kakrc
@@ -15,7 +15,7 @@ hook global WinSetOption filetype=(rust|python|nim|go|javascript|typescript|c|cp
lsp-enable-window
lsp-auto-hover-insert-mode-enable
}
-hook global WinSetOption filetype=(eml|markdown) %{
+hook global WinSetOption filetype=(eml|markdown|org) %{
spell
}
hook global BufSetOption filetype=(javascript|typescript) %{
@@ -51,6 +51,7 @@ complete-command z shell-script-candidates %{ zoxide query -l }
# --- KEYMAPS
+map global user w '|fmt --width 80<ret>' -docstring "Wrap to 80 columns"
map global user l %{:enter-user-mode lsp<ret>} -docstring "LSP mode"
map global insert <tab> '<a-;>:try lsp-snippets-select-next-placeholders catch %{ execute-keys -with-hooks <lt>tab> }<ret>' -docstring 'Select next snippet placeholder'
map global object a '<a-semicolon>lsp-object<ret>' -docstring 'LSP any symbol'
@@ -135,6 +136,9 @@ hook global WinCreate .* %{ expandtab }
# Enable spelling for markdown
hook global WinCreate filetype=(markdown) %{ spell }
+# Wrap for org and markdown
+hook global WinCreate filetype=(markdown|org) %{ autowrap-enable }
+
# Softwrap long lines
add-highlighter global/ wrap -word -indent