github nordtheme/vim v0.19.0
0.19.0

23 months ago

Project Board Milestone

Show all commits

Features

Syntax

Support for LSP textDocument/documentHighlight#284 (⊶ 3e4e273) by @cmoscofian

↠ The Neovim LSP textDocument / documentHightlight groups are responsible to highlight tokens in a document that are related to each
other, e.g. declared variables, using the vim.buf.lsp.document_highlight() function.
Also see the LSP specification about "Document Highlights Request" for more details.

gh-284.mp4

UI

Support for LSP LSPSignatureActiveParameter#286 (⊶ a825678) by @cmoscofian

↠ The vim.lsp.buf.signature_help function is used to highlight the active parameter in the signature help. Before the active parameter was not styled differently to any other parameter which made it hard to distinguish it. This has been improved by adding support for the LspSignatureActiveParameter syntax highlighting group where the active parameter now uses nord8 are foreground color and additionally a font underline with the same color.

Before

After

Improvements

Refactored theme configuration conditions#295, #305 (⊶ 291e05d, e3eb208) by @jvoisin and @svengreb

↠ The conditions and default values of the theme configurations were quite verbose so this commit improves them by…

  • …using inline ternary operators instead of if/else blocks to reduce the code overhead and make it way more readable.
  • …using Vim builtin get function instead of if/else blocks.
  • …inlining the script-scoped logWarning function since it was only used once.
  • …grouping some blocks where it made sense.
Only call execute function once per syntax group#303 (⊶ 77fe4b3) by @jvoisin and @svengreb

↠ Before the custom s:hi function called Vim's execute function for each defined attribute which is quite expensive in terms of performance. To improve this the attributes are now concatenate as string and passed to exec at the end of the function instead.

Syntax

Readability of C language constants#283 (⊶ b32592e) by @jvoisin

↠ To improve the readability of C language constants, defined by the cConstant syntax highlighting group, these are now colored with nord9 for the foreground to make them stand out. This is important in C, since interesting things are usually happening in their proximity, like checking/returning an error, passing particular values/flags to functions and so on.

Before

After

Tasks

Support for Neovim 0.6.0 diagnostic API highlight groups — #282 (⊶ 8035ba0) by @jan-xyz

↠ In Neovim 0.6.0 the naming scheme for the highlight groups of the diagnostic API changed. The new groups have been added as default while the previous groups are conditionally guarded when using Neovim 0.5.0.

The full changelog is available in the repository

Don't miss a new vim release

NewReleases is sending notifications on new releases.