Neovim 0.11 中有哪些新内容

Neovim 0.11 was released. Highlights include:

  • Breaking Changes: List in release notes. Plugin authors should read.
  • LSP:

    • Simpler Setup and Configuration: New vim.lsp.config() and vim.lsp.enable() APIs. Can use simple config files or provide options. :checkhealth lsp for diagnostics.
    • Builtin Auto-completion: Enabled with vim.lsp.completion.enable().
    • Improved Hover Documentation: Uses Markdown tree-sitter highlighting. New winborder option for hover window borders.
    • Putting It All Together: Video shows setting up LSP from scratch.
  • Tree-sitter Performance: Async highlighting, folding, and injected query iteration. Queries cached more efficiently.
  • Better Emoji Support: Resolved issues with ZWJ and other modifiers. Supports DEC mode 2027.
  • Diagnostics:

    • Virtual Text Handler: Opt-in with vim.diagnostic.config({ virtual_text = true }). New current_line option.
    • Virtual Lines: Plugin added to Neovim core. Enabled with vim.diagnostic.config({ virtual_lines = true }).
  • Defaults: Added more default key mappings for LSP. Also included some from vim-unimpaired.
  • Terminal:

    • Cursor shape and blink change. OSC 52 and OSC 8 sequences supported. DEC mode 2031 for theme updates. Kitty keyboard protocol support. New mappings for shell prompts.
  • Miscellaneous:

    • g== in help buffers to execute code. completeopt with "fuzzy" value. Extmarks can conceal entire lines. New right-click menu items.
  • Getting Involved: Encourage users to contribute or participate in the community.

The full list of changes is in the release notes (use :h news).

阅读 7
0 条评论