neovim/scripts
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
..
check_urls.vim vim-patch: move test_urls.vim out of runtime/ 2018-11-12 12:36:40 -05:00
check-includes.py py: flake8 fixes 2019-07-29 22:14:23 +02:00
download-unicode-files.sh Download emoji-data from UNIDATA/ 2020-10-04 11:50:29 -04:00
finddeclarations.pl Remove remaining declarations with new script: finddeclarations.pl 2014-06-02 11:04:18 -03:00
gen_help_html.py py: flake8 fixes 2019-07-29 22:14:23 +02:00
gen_vimdoc.py lsp: vim.lsp.diagnostic (#12655) 2020-11-12 22:21:34 -05:00
genappimage.sh genappimage.sh: migrate to linuxdeploy #10027 2019-05-18 20:38:19 +02:00
genvimvim.lua runtime/syntax: Fix highlighting of augroup contents (#9328) 2018-12-08 01:16:58 +01:00
git-log-pretty-since.sh release.sh: Format issue-numbers in descriptions [ci skip] 2019-01-04 06:03:47 +01:00
legacy2luatest.pl legacy2luatest: Use before_each instead of setup. 2016-02-01 09:09:08 +01:00
lua2dox_filter doc: fix scripts and regenerate (#12506) 2020-07-02 07:09:17 -04:00
lua2dox.lua lsp: vim.lsp.diagnostic (#12655) 2020-11-12 22:21:34 -05:00
movedocs.pl Move documentation from function declarations to definitions 2014-06-02 11:04:04 -03:00
pvscheck.sh pvs: Exclude xdiff from analysis and comment munging 2020-11-10 10:00:25 -05:00
release.sh release.sh [ci skip] 2019-11-24 17:53:33 -08:00
shadacat.py Merge #11319 'inccommand: fix issues with modifiers and prompting' 2019-11-05 17:34:21 -08:00
stripdecls.py scripts: autopep8 2019-07-29 22:14:23 +02:00
update_terminfo.sh update_terminfo.sh: NOLINT data arrays 2018-12-28 23:52:03 +01:00
update_version_stamp.lua update_version_stamp.lua: Use NUL on Windows #11323 2019-11-02 04:54:59 +09:00
vim-patch.sh fixup! rename: user_funcs -> userfunc 2020-11-01 13:22:52 -05:00
vimpatch.lua vimpatch.lua: automate version.c 2017-12-27 12:30:55 +01:00
windows.ti win/TUI: fix text overrides line numbers #9474 2019-01-09 10:40:02 +01:00