From c2fcd44b6a64ec7fd44f364a64396f680babbf8d Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Wed, 29 May 2024 12:51:04 -0500 Subject: Updates --- config/kak/kakrc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'config/kak/kakrc') 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' -docstring "LSP Format" map global user w '|fmt --width 80' -docstring "Wrap to 80 columns" map global user l %{:enter-user-mode lsp} -docstring "LSP mode" map global insert ':try lsp-snippets-select-next-placeholders catch %{ execute-keys -with-hooks tab> }' -docstring 'Select next snippet placeholder' -- cgit v1.2.3