kak: activar kak-lsp para zig
This commit is contained in:
parent
51b11ae78c
commit
67949ccddc
1 changed files with 19 additions and 19 deletions
|
@ -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<ret>' -docstring "LSP Rename"
|
||||
# map buffer user a ': lsp-code-actions<ret>' -docstring "LSP Code actions"
|
||||
# map buffer user , ': lsp-hover<ret>' -docstring "LSP hover"
|
||||
# map buffer user l ': enter-user-mode lsp<ret>' -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<ret>' -docstring "LSP Rename"
|
||||
map buffer user a ': lsp-code-actions<ret>' -docstring "LSP Code actions"
|
||||
map buffer user , ': lsp-hover<ret>' -docstring "LSP hover"
|
||||
map buffer user l ': enter-user-mode lsp<ret>' -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 }
|
||||
|
|
Loading…
Reference in a new issue