diff --git a/.config/kak/autoload/lsp.kak b/.config/kak/autoload/lsp.kak index fd09c006..5cadc318 100644 --- a/.config/kak/autoload/lsp.kak +++ b/.config/kak/autoload/lsp.kak @@ -24,26 +24,10 @@ define-command -hidden -override lsp-hide-code-actions %{ set-option global lsp_debug false # list of filetypes for which LSP will be activated in the window scope -declare-option str-list lsp_filetypes python %{ - # programming - python - go - rust - bash - fish - c - cpp - # markup - typst - markdown - # config - yaml - json - jsonc -} +declare-option str-list lsp_filetypes python go rust bash fish c cpp typst markdown yaml json jsonc define-command -hidden lsp-filetype-hooks-update %{ - try %{ remove-hooks window lsp-filetypes } + try %{ remove-hooks global lsp-filetypes } # convert the str-list into regex of form (a|b|c|...) hook -group lsp-filetypes global WinSetOption %exp~filetype=%sh{ printf '%s' "(${kak_opt_lsp_filetypes// /|})" diff --git a/.config/kak/autoload/picker.kak b/.config/kak/autoload/picker.kak index 58d4f871..9dd7ae96 100644 --- a/.config/kak/autoload/picker.kak +++ b/.config/kak/autoload/picker.kak @@ -1,5 +1,5 @@ define-command file-picker %{ - prompt -shell-script-candidates 'fd . --type f --follow --no-ignore-vcs --ignore-file=.kakignore' open: %{ + prompt -shell-script-candidates 'fd . --exclude "*.pdf" --type f --follow --no-ignore-vcs --ignore-file=.kakignore' open: %{ edit -existing %val{text} } }