prefer lsp formatting

This commit is contained in:
lelgenio 2022-02-28 15:29:14 -03:00
parent c046ec6b33
commit 7b6dac6f19
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ map global user 'z' ':zoxide ' -docstring 'zoxide'
map global user 'n' ': new<ret>' -docstring 'new window'
map global user 'e' 'x|emmet<ret>{{@@ "@" if not tabs @@}}' -docstring 'process line with emmet'
map global user 'm' ': try format-buffer catch lsp-formatting<ret>' -docstring 'format document'
map global user 'M' ': try format-selections catch lsp-range-formatting<ret>' -docstring 'format selection'
map global user 'm' ': try lsp-formatting catch format-buffer<ret>' -docstring 'format document'
map global user 'M' ': try lsp-range-formatting catch format-selections<ret>' -docstring 'format selection'
map global user 'c' ': comment-line<ret>' -docstring 'comment line'
map global user 'C' '_: comment-block<ret>' -docstring 'comment block'