kak: activar kak-lsp para zig

This commit is contained in:
Cat /dev/Nulo 2021-12-29 16:36:41 -03:00
parent 51b11ae78c
commit 67949ccddc

View file

@ -9,25 +9,25 @@ colorscheme grayscale-superiority
#source "%val{config}/todo-txt.kak" #source "%val{config}/todo-txt.kak"
# eval %sh{kak-lsp --kakoune -s $kak_session} 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_cmd "kak-lsp -s %val{session} -vvv --log /tmp/kak-lsp.log"
# set global lsp_diagnostic_line_error_sign '║' set global lsp_diagnostic_line_error_sign '║'
# set global lsp_diagnostic_line_warning_sign '┊' set global lsp_diagnostic_line_warning_sign '┊'
# set global lsp_hover_anchor true set global lsp_hover_anchor true
# set global lsp_auto_highlight_references true set global lsp_auto_highlight_references true
# #set global lsp_hover_max_lines 3 #set global lsp_hover_max_lines 3
# hook global WinSetOption filetype=(go|javascript|typescript|zig) %{ hook global WinSetOption filetype=(zig) %{
# map buffer user r ': lsp-rename-prompt<ret>' -docstring "LSP Rename" map buffer user r ': lsp-rename-prompt<ret>' -docstring "LSP Rename"
# map buffer user a ': lsp-code-actions<ret>' -docstring "LSP Code actions" map buffer user a ': lsp-code-actions<ret>' -docstring "LSP Code actions"
# map buffer user , ': lsp-hover<ret>' -docstring "LSP hover" map buffer user , ': lsp-hover<ret>' -docstring "LSP hover"
# map buffer user l ': enter-user-mode lsp<ret>' -docstring "LSP mode" map buffer user l ': enter-user-mode lsp<ret>' -docstring "LSP mode"
# #set buffer idle_timeout 200 #set buffer idle_timeout 200
# #lsp-inlay-diagnostics-enable buffer #lsp-inlay-diagnostics-enable buffer
# lsp-enable-window lsp-enable-window
# #lsp-auto-hover-enable #lsp-auto-hover-enable
# lsp-auto-signature-help-enable lsp-auto-signature-help-enable
# } }
# hook global KakEnd .* lsp-exit hook global KakEnd .* lsp-exit
hook global WinSetOption filetype=(javascript|typescript|json|css) %{ hook global WinSetOption filetype=(javascript|typescript|json|css) %{
set-option buffer formatcmd %sh{ echo prettier --stdin-filepath $kak_buffile } set-option buffer formatcmd %sh{ echo prettier --stdin-filepath $kak_buffile }