-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add <plug> mappings #210
Add <plug> mappings #210
Conversation
nnoremap <expr> <plug>(lsp-rename) [lsp#ui#vim#rename(),''][1] | ||
nnoremap <expr> <plug>(lsp-workspace-symbol) [lsp#ui#vim#workspace_symbol(),''][1] | ||
nnoremap <expr> <plug>(lsp-document-format) [lsp#ui#vim#document_format(),''][1] | ||
vnoremap <expr> <plug>(lsp-document-format) [lsp#ui#vim#document_range_format(),''][1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you prefer this is <plug>(lsp-document-range-format)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm either way. We can add lsp-document-range-format
if we get feedback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also document this new feature.
Okay, will do |
Merged. Thanks! |
@mattn Seems like for me I need to add
Would it be possible to make it so the user can define autocmd without adding |
No need to add |
* Add <plug> mappings * Update doc
No description provided.