diff options
author | Marc Coquand <marc@mccd.space> | 2024-05-29 12:51:04 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-05-29 12:51:04 -0500 |
commit | c2fcd44b6a64ec7fd44f364a64396f680babbf8d (patch) | |
tree | b7d0b5902d682985392991ae430ef9fef2431e03 /config/kak | |
parent | 3b42452a37117bace208a2085980e7c1b79b3738 (diff) | |
download | rcm-c2fcd44b6a64ec7fd44f364a64396f680babbf8d.tar.gz rcm-c2fcd44b6a64ec7fd44f364a64396f680babbf8d.tar.bz2 rcm-c2fcd44b6a64ec7fd44f364a64396f680babbf8d.zip |
Updates
Diffstat (limited to 'config/kak')
-rw-r--r-- | config/kak/kakrc | 7 |
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' |