Added Java to the kak-lsp filetype list

This commit is contained in:
Davide Oddone 2023-12-11 19:53:03 +01:00
parent fcd9f69f80
commit 8e42ad41ca

6
kakrc
View File

@ -28,8 +28,8 @@ plug "kak-lsp/kak-lsp" do %{
} config %{
# uncomment to enable debugging
# eval %sh{echo ${kak_opt_lsp_cmd} >> /tmp/kak-lsp.log}
# set global lsp_cmd "kak-lsp -s %val{session} -vvv --log /tmp/kak-lsp.log"
eval %sh{echo ${kak_opt_lsp_cmd} >> /tmp/kak-lsp.log}
set global lsp_cmd "kak-lsp -s %val{session} -vvv --log /tmp/kak-lsp.log"
# this is not necessary; the `lsp-enable-window` will take care of it
# eval %sh{${kak_opt_lsp_cmd} --kakoune -s $kak_session}
@ -42,7 +42,7 @@ plug "kak-lsp/kak-lsp" do %{
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|sh|python|go) %{
hook global WinSetOption filetype=(c|cpp|sh|python|go|java) %{
set-option window lsp_auto_highlight_references true
set-option window lsp_hover_anchor false
lsp-auto-hover-enable