diff options
Diffstat (limited to '')
-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' |