AutoYADM commit: 2025-07-26 13:24:42
This commit is contained in:
parent
89a1b92ee3
commit
4045770952
2 changed files with 16 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -49,3 +49,14 @@ define-command regswap -params 2 %{
|
|||
execute-keys -draft '"xZZs\Q<c-r>a\E<ret>"cZzs\Q<c-r>b\E<ret>"dZ"cz"bR"dz"aRz'
|
||||
}
|
||||
}
|
||||
|
||||
define-command pastes %{
|
||||
evaluate-commands -draft -save-regs '"a|' %{
|
||||
execute-keys '"ay'
|
||||
edit -scratch
|
||||
set-register | 'ssh pastes.sh 2>/dev/null'
|
||||
execute-keys '"a<a-R>%|<ret>%s\r<ret>d%"ay'
|
||||
echo -debug %reg{a}
|
||||
delete-buffer
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue