AutoYADM commit: 2025-05-24 16:57:39
This commit is contained in:
parent
cf46ae2f4d
commit
539066a9af
2 changed files with 3 additions and 19 deletions
|
@ -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// /|})"
|
||||
|
|
|
@ -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}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue