Download Latest Version 0.19.0 source code.tar.gz (32.5 kB)
Email in envelope

Get an email when there's a new version of Nord Vim

Home / v0.19.0
Name Modified Size InfoDownloads / Week
Parent folder
0.19.0 source code.tar.gz 2022-05-14 32.5 kB
0.19.0 source code.zip 2022-05-14 35.4 kB
README.md 2022-05-14 7.9 kB
Totals: 3 Items   75.9 kB 0

Release Date: 2022-05-14 Project Board Milestone

Show all commits

Features

Syntax

Support for LSP textDocument/documentHighlight — [#284] (⊶ 3e4e273d) by @cmoscofian ↠ The [Neovim LSP `textDocument` / `documentHightlight` groups][114] 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"][115] for more details.

UI

Support for LSP LSPSignatureActiveParameter — [#286] (⊶ a8256787) by @cmoscofian ↠ The [`vim.lsp.buf.signature_help` function is used to highlight the active parameter in the signature help][117]. 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] (⊶ 291e05d9, e3eb2084) 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][118] 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] (⊶ 77fe4b3f) by @jvoisin and @svengreb ↠ Before the custom `s:hi` function called [Vim's `execute` function][119] 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] (⊶ b32592eb) by @jvoisin ↠ To improve the readability of C language constants, defined by [the `cConstant` syntax highlighting group][116], 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] (⊶ 8035ba07) by @jan-xyz ↠ In [Neovim `0.6.0`][112] the [naming scheme for the highlight groups of the diagnostic API changed][113]. 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

Source: README.md, updated 2022-05-14