Remove -range from nnoremap <plug>(lsp-rust-join-lines)

AFAIK, `-range` is not a valid option on maps. This caused me to have a
broken mapping for `-range` itself, adding an annoying timeout on my
unrelated `-` mapping.

```
:nmap -
n  -range      * <Plug>(lsp-rust-join-lines) :<C-U>call <SNR>131_join_lines()<CR>
n  -             <Plug>(dirvish_up)
```
This commit is contained in:
Josh Stone
2022-03-25 18:31:53 -07:00
committed by mattn
parent 3ff342642a
commit 89149e219a

View File

@@ -30,7 +30,7 @@ function! s:on_lsp_buffer_enabled() abort
nnoremap <buffer> <plug>(lsp-rust-analyzer-status) :<c-u>call <SID>rust_analyzer_status()<cr>
command! -range LspRustJoinLines call <SID>join_lines()
nnoremap -range <plug>(lsp-rust-join-lines) :<c-u>call <SID>join_lines()<cr>
nnoremap <plug>(lsp-rust-join-lines) :<c-u>call <SID>join_lines()<cr>
command! -buffer LspRustFindMatchingBrace call <SID>find_matching_brace()
nnoremap <buffer> <plug>(lsp-rsut-find-matching-brace) :<c-u>call <SID>find_matching_brace()<cr>