SUHRREOG5AMITLKJANBQPU3RWQYHWMO3JKIG5HIFZQQCE3KOTUGAC
# Kakoune LSP Client
eval %sh{kak-lsp --kakoune -s $kak_session}
define-command ne -docstring 'go to next error/warning from lsp' %{ lsp-find-error --include-warnings }
define-command pe -docstring 'go to previous error/warning from lsp' %{ lsp-find-error --previous --include-warnings }
define-command ee -docstring 'go to current error/warning from lsp' %{ lsp-find-error --include-warnings; lsp-find-error --previous --include-warnings }
define-command lsp-restart -docstring 'restart lsp server' %{ lsp-stop; lsp-start }
hook global WinSetOption filetype=(c|cpp|zig|markdown) %{
map window user , %{: enter-user-mode lsp<ret>}
echo -debug "Enabling LSP for filtetype %opt{filetype}"
lsp-enable-window
# PLUGINS #
evaluate-commands %sh{
kak-lsp --kakoune -s $kak_session
define-command ne \
-docstring 'go to next error/warning from lsp' \
%{ lsp-find-error --include-warnings }
define-command pe \
-docstring 'go to previous error/warning from lsp' \
%{ lsp-find-error --previous --include-warnings }
define-command ee \
-docstring 'go to current error/warning from lsp' \
%{ lsp-find-error --include-warnings; lsp-find-error --previous --include-warnings }
define-command lsp-restart \
-docstring 'restart lsp server' \
%{ lsp-stop; lsp-start }