AutoYADM commit: 2025-07-26 13:24:42

This commit is contained in:
Daniel Fichtinger 2025-07-26 13:24:42 -04:00
parent 89a1b92ee3
commit 4045770952
2 changed files with 16 additions and 3 deletions

View file

@ -328,8 +328,6 @@ hook -group lsp-filetype-fish global BufSetOption filetype=fish %{
}
}
# TODO: toggle between two markdown configs
declare-option -hidden str markdown_lsp_marksman %{
[marksman]
root_globs = [".marksman.toml", ".git"]
@ -356,17 +354,21 @@ define-command -hidden markdown-lsp-with-harper %{
%opt{markdown_lsp_marksman}
%opt{markdown_lsp_harper}
}
lsp-restart
}
define-command -hidden markdown-lsp-without-harper %{
set-option buffer lsp_servers %exp{
%opt{markdown_lsp_marksman}
}
lsp-restart
}
remove-hooks global lsp-filetype-markdown
hook -group lsp-filetype-markdown global BufSetOption filetype=markdown %{
markdown-lsp-without-harper
set-option buffer lsp_servers %exp{
%opt{markdown_lsp_marksman}
}
}
declare-filetype-mode markdown