summaryrefslogtreecommitdiff
path: root/config/kak/kakrc
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-05-29 12:51:04 -0500
committerMarc Coquand <marc@mccd.space>2024-05-29 12:51:04 -0500
commitc2fcd44b6a64ec7fd44f364a64396f680babbf8d (patch)
treeb7d0b5902d682985392991ae430ef9fef2431e03 /config/kak/kakrc
parent3b42452a37117bace208a2085980e7c1b79b3738 (diff)
downloadrcm-c2fcd44b6a64ec7fd44f364a64396f680babbf8d.tar.gz
rcm-c2fcd44b6a64ec7fd44f364a64396f680babbf8d.tar.bz2
rcm-c2fcd44b6a64ec7fd44f364a64396f680babbf8d.zip
Updates
Diffstat (limited to '')
-rw-r--r--config/kak/kakrc7
1 files changed, 4 insertions, 3 deletions
diff --git a/config/kak/kakrc b/config/kak/kakrc
index cb7cad4..a2a95a7 100644
--- a/config/kak/kakrc
+++ b/config/kak/kakrc
@@ -27,9 +27,9 @@ hook global BufSetOption filetype=(javascript|typescript|elixir|haskell|rust|mar
lsp-auto-signature-help-enable
}
-hook global BufSetOption filetype=(terraform|ocaml|elixir|nix) %{
- hook buffer BufWritePost .* %{lsp-formatting-sync}
-}
+#hook global BufSetOption filetype=(terraform|ocaml|elixir|nix) %{
+# hook buffer BufWritePre .* %{lsp-formatting-sync}
+#}
eval %sh{kak-lsp --kakoune -s $kak_session}
lsp-enable
@@ -51,6 +51,7 @@ complete-command z shell-script-candidates %{ zoxide query -l }
# --- KEYMAPS
+map global user = ':lsp-formatting<ret>' -docstring "LSP Format"
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'