pub-solar-os/profiles/develop/kakoune/lsp/common.kak

15 lines
398 B
Plaintext
Raw Normal View History

2019-12-15 07:03:57 +00:00
eval %sh{kak-lsp --kakoune -s $kak_session}
2020-12-28 00:38:22 +00:00
hook -group lsp global WinSetOption filetype=(elm|rust|c|cpp|python|dhall) %{
2019-12-15 07:03:57 +00:00
lsp-auto-hover-enable
# easily enter lsp mode
map -docstring "language-server mode" buffer user l ': enter-user-mode lsp<ret>'
set buffer lsp_hover_anchor true
set buffer lsp_auto_highlight_references true
2020-12-28 00:38:22 +00:00
hook buffer BufWritePre .* %{
lsp-formatting
}
2019-12-15 07:03:57 +00:00
}