neovim/test/functional
TJ DeVries f75be5e9d5
lsp: vim.lsp.diagnostic (#12655)
Breaking Changes:
- Deprecated all `vim.lsp.util.{*diagnostics*}()` functions.
    - Instead, all functions must be found in vim.lsp.diagnostic
    - For now, they issue a warning ONCE per neovim session. In a
      "little while" we will remove them completely.
- `vim.lsp.callbacks` has moved to `vim.lsp.handlers`.
    - For a "little while" we will just redirect `vim.lsp.callbacks` to
      `vim.lsp.handlers`. However, we will remove this at some point, so
      it is recommended that you change all of your references to
      `callbacks` into `handlers`.
    - This also means that for functions like |vim.lsp.start_client()|
      and similar, keyword style arguments have moved from "callbacks"
      to "handlers". Once again, these are currently being forward, but
      will cease to be forwarded in a "little while".
- Changed the highlight groups for LspDiagnostic highlight as they were
  inconsistently named.
    - For more information, see |lsp-highlight-diagnostics|
- Changed the sign group names as well, to be consistent with
  |lsp-highlight-diagnostics|

General Enhancements:
- Rewrote much of the getting started help document for lsp. It also
  provides a much nicer configuration strategy, so as to not recommend
  globally overwriting builtin neovim mappings.

LSP Enhancements:
- Introduced the concept of |lsp-handlers| which will allow much better
  customization for users without having to copy & paste entire files /
  functions / etc.

Diagnostic Enhancements:
- "goto next diagnostic" |vim.lsp.diagnostic.goto_next()|
- "goto prev diagnostic" |vim.lsp.diagnostic.goto_prev()|
    - For each of the gotos, auto open diagnostics is available as a
      configuration option
- Configurable diagnostic handling:
    - See |vim.lsp.diagnostic.on_publish_diagnostics()|
    - Delay display until after insert mode
    - Configure signs
    - Configure virtual text
    - Configure underline
- Set the location list with the buffers diagnostics.
    - See |vim.lsp.diagnostic.set_loclist()|
- Better performance for getting counts and line diagnostics
    - They are now cached on save, to enhance lookups.
    - Particularly useful for checking in statusline, etc.
- Actual testing :)
    - See ./test/functional/plugin/lsp/diagnostic_spec.lua
- Added `guisp` for underline highlighting

NOTE: "a little while" means enough time to feel like most plugins and
plugin authors have had a chance to refactor their code to use the
updated calls. Then we will remove them completely. There is no need to
keep them, because we don't have any released version of neovim that
exposes these APIs. I'm trying to be nice to people following HEAD :)

Co-authored: [Twitch Chat 2020](https://twitch.tv/teej_dv)
2020-11-12 22:21:34 -05:00
..
api api: nvim_buf_delete 2020-10-22 16:08:32 -04:00
autocmd Merge pull request #13205 from romgrk/add-bufmodified-autocmd 2020-11-09 12:23:14 +01:00
autoread removed retry 2020-07-03 00:55:14 +05:30
cmdline doc: fix typos 2019-11-27 22:47:25 -08:00
core startup: handle autoload and lua packages during startup 2020-11-02 15:21:36 +01:00
eval vim-patch:8.2.1925: list/dict test fails 2020-11-01 09:28:33 -05:00
ex_cmds startup: handle autoload and lua packages during startup 2020-11-02 15:21:36 +01:00
fixtures Add PVS comment to new source files 2020-11-10 11:19:59 -05:00
insert edit.c: Ensure undo sync when emulating <Esc>x #11706 2020-01-12 17:09:39 -08:00
legacy vim-patch:8.2.1925: list/dict test fails 2020-11-01 09:28:33 -05:00
lua lua: make vim.inspect available early so it can be used for path debugging 2020-11-05 14:46:41 +01:00
normal Treat unmapped ALT/META as ESC+c in all modes 2020-10-05 15:27:04 -04:00
options win/env: fix stdpath()/XDG_* initialization, parsing #12829 2020-09-07 22:40:12 -07:00
plugin lsp: vim.lsp.diagnostic (#12655) 2020-11-12 22:21:34 -05:00
provider vim-patch:8.1.1056: no eval function for Ruby 2020-10-21 10:20:21 -07:00
shada shada: fix failed assertion on exit (#12692) 2020-07-31 16:08:34 +02:00
terminal A Mudholland Dr. Recast 2020-10-19 21:48:06 +02:00
ui Add test case for fold on multigrid 2020-11-09 15:05:23 +09:00
viml A Mudholland Dr. Recast 2020-10-19 21:48:06 +02:00
visual Treat unmapped ALT/META as ESC+c in all modes 2020-10-05 15:27:04 -04:00
example_spec.lua screen.lua: remove screen:_on_event #11488 2019-12-01 01:06:10 -08:00
helpers.lua api: add API for themes 2020-11-01 19:14:56 +01:00
preload.lua test/functional/preload.lua: _set_fmode for Windows 2019-09-25 05:47:15 +02:00