diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2020-01-08 22:48:57 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-08 22:48:57 -0800 |
| commit | 25afa10f9277dd6148a6abb3d7577c67f479fce2 (patch) | |
| tree | f716d09f58416c4f4329743578b8aa536f20ae49 /runtime/doc | |
| parent | b6276f5aee835a6d44b2957027c5399c976c6647 (diff) | |
| parent | 0a1c6d9a374a0c984515d0af43b1c71af6c55eb2 (diff) | |
| download | rneovim-25afa10f9277dd6148a6abb3d7577c67f479fce2.tar.gz rneovim-25afa10f9277dd6148a6abb3d7577c67f479fce2.tar.bz2 rneovim-25afa10f9277dd6148a6abb3d7577c67f479fce2.zip | |
Merge #11669 'LSP: differentiate diagnostic underline by severity'
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/lsp.txt | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 70a3110042..c173ecead3 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -57,24 +57,39 @@ use of |v:lua| to call Lua from Vimscript): > autocmd Filetype python setlocal omnifunc=v:lua.vim.lsp.omnifunc -FAQ ~ - -> How to force-reload LSP? +================================================================================ +FAQ *lsp-faq* -Stop all clients, then reload the buffer. > +- Q: How to force-reload LSP? + A: Stop all clients, then reload the buffer. > :lua vim.lsp.stop_all_clients() :edit -> Why isn't completion working? - -In the buffer where you want to use LSP, check that 'omnifunc' is set to -"v:lua.vim.lsp.omnifunc": > +- Q: Why isn't completion working? + A: In the buffer where you want to use LSP, check that 'omnifunc' is set to + "v:lua.vim.lsp.omnifunc": > :verbose set omnifunc? -Some other plugin may be overriding the option. To avoid that, you could set -the option in an |after-directory| ftplugin, e.g. "after/ftplugin/python.vim". +< Some other plugin may be overriding the option. To avoid that, you could + set the option in an |after-directory| ftplugin, e.g. + "after/ftplugin/python.vim". + +================================================================================ +LSP HIGHLIGHT *lsp-highlight* + +When LSP is activated these highlight groups are defined: + + LspDiagnosticsError + LspDiagnosticsHint + LspDiagnosticsInformation + LspDiagnosticsUnderline + LspDiagnosticsUnderlineError + LspDiagnosticsUnderlineHint + LspDiagnosticsUnderlineInformation + LspDiagnosticsUnderlineWarning + LspDiagnosticsWarning ================================================================================ LSP API *lsp-api* |