Replace lsp-capabilities keybinding with lsp-describe-session

Also, move the binding from `SPC m b c` to `SPC m b d`. lsp-capabilities was
replaced with lsp-describe-session in lsp-mode.
This commit is contained in:
Bryan Tan 2019-02-18 21:25:28 -08:00 committed by duianto
parent 3b48c09a7f
commit ab5fb0e58e
3 changed files with 7 additions and 4 deletions

View file

@ -1525,6 +1525,9 @@ Other:
(thanks to Matt Kramer) (thanks to Matt Kramer)
**** Lua **** Lua
- Added support for auto-completion with =company= (thanks to halfcrazy) - Added support for auto-completion with =company= (thanks to halfcrazy)
**** Language Server Protocol (LSP)
- Replace lsp-capabilities keybinding with lsp-describe-session
(thanks to Bryan Tan)
**** Markdown **** Markdown
- New layer variable =markdown-mmm-auto-modes= which is a list of language names - New layer variable =markdown-mmm-auto-modes= which is a list of language names
or lists of language and mode names that are supported in source blocks, you or lists of language and mode names that are supported in source blocks, you

View file

@ -22,7 +22,7 @@ This layer adds support for basic language server protocol packages speaking
Different language servers may support the language server protocol to varying degrees Different language servers may support the language server protocol to varying degrees
and they may also provide extensions; check the language servers website for and they may also provide extensions; check the language servers website for
details. details.
=M-x lsp-capabilities= in a LSP buffer to list capabilities of the server. =M-x lsp-describe-session= in a LSP buffer to list capabilities of the server.
** Features: ** Features:
- Cross references (definitions, references, document symbol, workspace symbol - Cross references (definitions, references, document symbol, workspace symbol
@ -121,7 +121,7 @@ The lsp minor mode bindings are:
|-------------+--------------------------------------------------------------------------------| |-------------+--------------------------------------------------------------------------------|
| ~SPC m b r~ | lsp-restart-workspace | | ~SPC m b r~ | lsp-restart-workspace |
| ~SPC m b a~ | execute code action | | ~SPC m b a~ | execute code action |
| ~SPC m b c~ | lsp-capabilities | | ~SPC m b d~ | lsp-describe-session |
|-------------+--------------------------------------------------------------------------------| |-------------+--------------------------------------------------------------------------------|
| ~SPC m r r~ | rename | | ~SPC m r r~ | rename |
|-------------+--------------------------------------------------------------------------------| |-------------+--------------------------------------------------------------------------------|
@ -200,7 +200,7 @@ etc.
* Diagnostics * Diagnostics
If some features do not work as expected, here is a common check list. If some features do not work as expected, here is a common check list.
- =M-x lsp-capabilities= If the LSP workspace is initialized correctly - =M-x lsp-describe-session= If the LSP workspace is initialized correctly
- =M-: xref-backend-functions= should be =(lsp--xref-backend)= for cross - =M-: xref-backend-functions= should be =(lsp--xref-backend)= for cross
references references
- =M-: completion-at-point-functions= should be =(lsp-completion-at-point)= for - =M-: completion-at-point-functions= should be =(lsp-completion-at-point)= for

View file

@ -51,7 +51,7 @@ https://github.com/emacs-lsp/lsp-javascript/issues/9#issuecomment-379515379"
;;jump ;;jump
;;backend ;;backend
"ba" #'lsp-execute-code-action "ba" #'lsp-execute-code-action
"bc" #'lsp-capabilities "bd" #'lsp-describe-session
"br" #'lsp-restart-workspace "br" #'lsp-restart-workspace
;;refactor ;;refactor
"rr" #'lsp-rename "rr" #'lsp-rename