diff --git a/.config/kak/autoload/lsp.kak b/.config/kak/autoload/lsp.kak index d85f60c4..8234b3a6 100644 --- a/.config/kak/autoload/lsp.kak +++ b/.config/kak/autoload/lsp.kak @@ -1,6 +1,5 @@ # load plugin eval %sh{kak-lsp} -lsp-enable # mappings map global user l ': enter-user-mode lsp' -docstring 'LSP mode' @@ -23,7 +22,14 @@ define-command -hidden -override lsp-hide-code-actions %{ } # Server Config set-option global lsp_debug false -lsp-inlay-hints-enable global +declare-option str-list lsp_filetypes python go rust bash fish typst yaml json jsonc + +hook global WinSetOption filetype=.* %{ + lsp-enable-window + lsp-inlay-hints-enable window +} + + # TODO: set up toggle binding for this # or even better, show them on hover...? # lsp-inlay-diagnostics-enable global diff --git a/.config/kak/autoload/plugins.kak b/.config/kak/autoload/plugins.kak index 0e65cae2..c9561ef3 100644 --- a/.config/kak/autoload/plugins.kak +++ b/.config/kak/autoload/plugins.kak @@ -35,8 +35,8 @@ bundle-noload fzf.kak https://github.com/andreyorst/fzf.kak %{ } bundle luar https://github.com/gustavo-hms/luar %{ - require-module luar - set-option global luar_interpreter luajit + # require-module luar + # set-option global luar_interpreter luajit } bundle peneira https://github.com/gustavo-hms/peneira %{ diff --git a/.config/kak/kakrc b/.config/kak/kakrc index afc00606..b14f7cc2 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -1,4 +1,4 @@ -eval %sh{ kak-tree-sitter -vvvvv -dks --init $kak_session } +eval %sh{ kak-tree-sitter -dks --init $kak_session } evaluate-commands %sh{kak-popup init} colorscheme ashen require-module fishr @@ -6,6 +6,9 @@ require-module surround require-module ficgrep require-module byline +require-module luar +set-option global luar_interpreter luajit + try %{ set-option global ashen_dynamic_cursor true