From 67949ccddc5ea23581e271343348e89c61f5e17c Mon Sep 17 00:00:00 2001 From: Nulo Date: Wed, 29 Dec 2021 16:36:41 -0300 Subject: [PATCH] kak: activar kak-lsp para zig --- .config/kak/kakrc | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 776d136..4bd39e7 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -9,25 +9,25 @@ colorscheme grayscale-superiority #source "%val{config}/todo-txt.kak" -# eval %sh{kak-lsp --kakoune -s $kak_session} -# set global lsp_cmd "kak-lsp -s %val{session} -vvv --log /tmp/kak-lsp.log" -# set global lsp_diagnostic_line_error_sign '║' -# set global lsp_diagnostic_line_warning_sign '┊' -# set global lsp_hover_anchor true -# set global lsp_auto_highlight_references true -# #set global lsp_hover_max_lines 3 -# hook global WinSetOption filetype=(go|javascript|typescript|zig) %{ -# map buffer user r ': lsp-rename-prompt' -docstring "LSP Rename" -# map buffer user a ': lsp-code-actions' -docstring "LSP Code actions" -# map buffer user , ': lsp-hover' -docstring "LSP hover" -# map buffer user l ': enter-user-mode lsp' -docstring "LSP mode" -# #set buffer idle_timeout 200 -# #lsp-inlay-diagnostics-enable buffer -# lsp-enable-window -# #lsp-auto-hover-enable -# lsp-auto-signature-help-enable -# } -# hook global KakEnd .* lsp-exit +eval %sh{kak-lsp --kakoune -s $kak_session} +set global lsp_cmd "kak-lsp -s %val{session} -vvv --log /tmp/kak-lsp.log" +set global lsp_diagnostic_line_error_sign '║' +set global lsp_diagnostic_line_warning_sign '┊' +set global lsp_hover_anchor true +set global lsp_auto_highlight_references true +#set global lsp_hover_max_lines 3 +hook global WinSetOption filetype=(zig) %{ + map buffer user r ': lsp-rename-prompt' -docstring "LSP Rename" + map buffer user a ': lsp-code-actions' -docstring "LSP Code actions" + map buffer user , ': lsp-hover' -docstring "LSP hover" + map buffer user l ': enter-user-mode lsp' -docstring "LSP mode" + #set buffer idle_timeout 200 + #lsp-inlay-diagnostics-enable buffer + lsp-enable-window + #lsp-auto-hover-enable + lsp-auto-signature-help-enable +} +hook global KakEnd .* lsp-exit hook global WinSetOption filetype=(javascript|typescript|json|css) %{ set-option buffer formatcmd %sh{ echo prettier --stdin-filepath $kak_buffile }