Commit graph

278 commits

Author SHA1 Message Date
Sven Greb f725ac643a More nordtheme organization migration adapations
To align with the latest Nord project standards more changes have been
made for as part of the `nordtheme` organization migration.

GH-335
2023-04-10 17:40:40 +02:00
Sven Greb 684c345b8a
nordtheme organization migration (#336)
As part of the "Northern Post - The state and roadmap of Nord" [1]
announcement, this repository will be migrated to the `nordtheme` GitHub
organization [2].
This issue is a task of the nordtheme/nord#185 [3] epic (tasklist [4]).

[1]: https://github.com/orgs/nordtheme/discussions/183
[2]: https://github.com/nordtheme
[3]: https://github.com/nordtheme/nord/issues/185
[4]: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/about-task-lists

GH-335
2023-03-07 22:58:07 +01:00
Sven Greb 0748955e9e
Fix image URLs after nord-docs GitHub flow and main branch migration (#327)
The URLs to image assets were broken due the recent GitHub flow
migration [1] in the `nord-docs` repository as well as the switch from
the `master` to `main` branch [2].

[1]: https://github.com/arcticicestudio/nord-docs/issues/229
[2]: https://github.com/arcticicestudio/nord-docs/issues/236

GH-326
2022-10-08 12:31:56 +02:00
Jason Long bc0f057162
Add Gitsigns and Sneak support (#316)
The highlighting for the marker of the `justinmk/vim-sneak` now matches
the style of the Vim search highlighting.
Also the inline text of the Neovim specific `lewis6991/gitsigns.nvim`
plugin now matches the the foregroun color of comments.


Co-authored-by: Sven Greb <development@svengreb.de>

GH-316
2022-05-31 18:14:25 +02:00
Sven Greb d32b4dd6aa
From master to main (#314)
Adapted to the default branch renaming from `master` to `main` [1] like
documented in detail in the main task issue
arcticicestudio/styleguide-git#11 [2].

[1]: https://github.com/github/renaming
[2]: https://github.com/arcticicestudio/styleguide-git/issues/11

Subtask of arcticicestudio/styleguide-git#11
GH-313
2022-05-14 15:06:42 +02:00
Sven Greb 6cbbf7a1bb
GitHub Flow migration (#312)
Adapted to "GitHub Flow" [1] like documented in detail in the main task
issue arcticicestudio/styleguide-git#9 [2].

[1]: https://guides.github.com/introduction/flow
[2]: https://guides.github.com/arcticicestudio/styleguide-git/issues/9

Co-authored-by: Sven Greb <development@svengreb.de>
Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>

Subtask of arcticicestudio/styleguide-git#9
GH-311
2022-05-14 14:40:11 +02:00
Sven Greb 2272dcf8ef Merge branch 'release/0.19.0' 2022-05-14 11:42:31 +02:00
Sven Greb c9e7f43e7f Release version 0.19.0 2022-05-14 11:42:13 +02:00
Julien Voisin f3327dbde7 Only call execute function once per syntax group (#303)
Before the custom `s:hi` function called Vim's `execute` function [1]
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.


Co-authored-by: Julien Voisin <jvoisin@google.com>
Co-authored-by: Sven Greb <development@svengreb.de>
Co-authored-by: Arctic Ice Sudio <development@arcticicestudio.com>

[1]: https://vimhelp.org/builtin.txt.html#builtin.txt#execute%28%29

GH-303
2022-05-14 11:42:13 +02:00
Julien Voisin dd7666d8b0 Use ternary for "italic" theme configuration (#305)
Instead of using a if/else block and empty variable declaration Vim's
builtin `get` function [1] is now used to simplify the code.


Co-authored-by: Sven Greb <development@svengreb.de>
Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>

[1]: https://vimhelp.org/builtin.txt.html#builtin.txt#get%28%29

GH-305
2022-05-14 11:42:13 +02:00
Sven Greb dc6cc32341 Revert conditional plugin loading (#307)
The changes introduced in PR GH-294 [1] did not take into account that
the order how plugins are loaded are not always constant and can also
change based on how users order plugins in their configurations.
When a supported plugin is loaded after Nord the global `loaded_*`
variable might not be available yet, causing the styles to be skipped
due to the conditional block guard. Also each plugin manager handles the
plugin loading order differently which is also a problem when checking
for global variable existence.

The loading time of the Nord plugin is still totally fine so improving
the stability for only a minimal performance boost is no negative trade
at all (tested via `vim --startuptime timing.out`):

  4.956ms: sourcing ~/.local/share/vim/plugged/nord-vim/colors/nord.vim

[1]: https://github.com/arcticicestudio/nord-vim/pull/294
[2]: https://github.com/arcticicestudio/nord-vim/issues/306

Fixes GH-306
2022-05-14 11:42:13 +02:00
Julien Voisin bf09e50f5c Refactor theme configuration conditions (#295)
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 [1] instead of if/else blocks.
- ...inlining the script-scoped `logWarning` function since it was only
  used once.
- ...grouping some blocks where it made sense.

[1]: https://vimhelp.org/builtin.txt.html#builtin.txt#get%28%29

GH-295


Co-authored-by: Sven Greb <development@svengreb.de>
2022-05-14 11:42:13 +02:00
Justin Nel 085a184d5d Fix syntax error in exists function (#297)
Fix syntax error in `exists` function

In GH-296 a syntax errors has crept in where the `exists` function was
missing the second `s` in two cases.

Fixes GH-299
GH-297


Co-authored-by: Julien Voisin <jvoisin@users.noreply.github.com>
Co-authored-by: Sven Greb <development@svengreb.de>
Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
2022-05-14 11:42:13 +02:00
Julien Voisin b0a09b73f1 Guard more plugin specific features in conditional blocks (#296)
This commit is a continuation of GH-294, see message and PR discussion
of commit `a4bf0a63e8e1e62e884eee9ec04d577105f58aa7` for details.

[1]: a4bf0a63e8

Related to GH-294
GH-296


Co-authored-by: Julien Voisin <jvoisin@google.com>
Co-authored-by: Sven Greb <development@svengreb.de>
2022-05-14 11:42:13 +02:00
Julien Voisin da94312d82 Don't load plugin-related things when the relevant plugin isn't installed (#294)
Guard plugin and Neovim specific features in conditional blocks

Function calls are expensive in Vim script so to reduce the overhead of
processing the theme most plugin and Neovim specific features are now
wrapped in conditional blocks, e.g. Neovim highlighting groups are only
loaded when the global `nvim` variable is set while other plugins are
checked for their own `loaded_*` variable (common plugin pattern).

Some plugins provide no easy/straightforward way to be detected, so not
all blocks are behind conditions, but it's still a significant
improvement, and can always be improved in the future.


Co-authored-by: Julien Voisin <jvoisin@google.com>
Co-authored-by: Sven Greb <development@svengreb.de>

GH-294
2022-05-14 11:42:13 +02:00
Charles Moscofian 3c2e4113d9 Add support for LSPSignatureHelpActiveParameter (#286)
The `vim.lsp.buf.signature_help` function is used to highlight the
active parameter in the signature help [1].
Before this commit 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.

[1]: 70db972e5f/runtime/doc/lsp.txt (L456-L459)


Co-authored-by: Sven Greb <development@svengreb.de>
Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>

GH-286
2022-05-14 11:42:13 +02:00
Julien Voisin 5970582dc4 Improve readability of C language constants (#283)
Improve readability of C language constants

To improve the readability of C language constants, defined by the
`cConstant` syntax highlighting group [1], 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.

[1]: 0e6adf8a29/runtime/syntax/c.vim (L313-L375)



Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
Co-authored-by: Sven Greb <development@svengreb.de>

GH-283
2022-05-14 11:42:13 +02:00
Charles Moscofian 2df7a984d6 Add support for LSP textDocument/documentHighlight (#284)
Support for Neovim LSP `documentHighlight` groups

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

[1]: f92a2457c2/runtime/doc/lsp.txt (L423)
[2]: https://microsoft.github.io/language-server-protocol/specification#textDocument_documentHighlight


Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
Co-authored-by: Sven Greb <development@svengreb.de>
2022-05-14 11:42:13 +02:00
Jan Steinke 3a362b6da3 Add support for neovim 0.6.0 diagnostic API highlight groups (#282)
In Neovim `0.6.0` [1] the naming scheme for the highlight groups of the
diagnostic API changed [2]. The new groups have been added as default while
the previous groups are conditionally guarded when using Neovim `0.5.0`.

[1]: https://github.com/neovim/neovim/releases/tag/v0.6.0
[2]: a5bbb932f9 (diff-51fab2b766d0a3b606462e95de492190df173b7296147912307cdad636cd492aR77)


Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
Co-authored-by: Sven Greb <development@svengreb.de>

GH-282
2022-05-14 11:42:13 +02:00
Arctic Ice Studio c2aaac39e5 Merge branch 'release/0.18.0' 2021-09-12 23:09:02 +02:00
Arctic Ice Studio 865dd93ad4 Release version 0.18.0 2021-09-12 23:08:57 +02:00
George Tom 6f183104bd Remove TSError syntax highlighting group (#270)
The `TSError` group is used to highlight syntax/parser errors [1] which
caused an aggressive styling where the background color of many syntax
elements was rendered with `nord11` during typing. This was caused due
to the fast processing of `tree-sitter` which also resulted in highlight
flickering.
This is a known problem and was fixed by many other themes (e.g. Dracula
[2]) by removing the group again. One of the core maintainers of
`nvim-treesitter` provided a solution by remapping groups [3] and also
mentioned that the group is styled by the `nvim-treesitter` plugin but
the active theme [4].

Syntax errors can still be highlighted through linters and parsers like
Neovim's LSP [5] can still be used instead to highlight errors with the
correct style (e.g. only change the foreground color of a single word).

[1]: https://github.com/nvim-treesitter/nvim-treesitter/blob/fb5d6e04/doc/nvim-treesitter.txt#L493-L495
[2]: https://github.com/dracula/vim/pull/232
[3]: https://github.com/nvim-treesitter/nvim-treesitter/issues/78#issuecomment-647140700
[4]: https://github.com/nvim-treesitter/nvim-treesitter/issues/1016#issuecomment-797049591
[5]: https://github.com/neovim/nvim-lspconfig

Fixes GH-269
2021-09-12 23:08:57 +02:00
Jan Steinke bb1d027ff7 add support for Lsp codelens (#266)
Support for LSP code lenses

Before LSP code lenses [1] where code lenses were highlighted with the
default color which has been changed to make it less visually intrusive,
like other UI related elements, i.e. messages of linters.

[1]: https://neovim.io/doc/user/lsp.html#lsp-highlight-codelens

GH-266


Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
2021-09-12 23:08:57 +02:00
Timothée Poisot 9c8ecad553 Add support for pandoc (#220)
Add support for `vim-pandoc/vim-pandoc-syntax`

To improve syntax highlighting for Pandoc [1], support for the
vim-pandoc/vim-pandoc-syntax [2] plugin has been implemented.
Most groups are linked to existing Markdown groups to ensure a
consistent style across languages and different plugins.

Configurations used for testing:

```vim
let g:pandoc#syntax#conceal#cchar_overrides = {"atx": "〉"}
let g:nord_italic = 1
```

Resources:

- `g:pandoc#syntax#conceal#cchar_overrides` docs [3]
- `s:cchars` definition [4]
- Markdown "Extended Syntax" Guide [5]

[1]: https://pandoc.org
[2]: https://github.com/vim-pandoc/vim-pandoc-syntax
[3]: https://github.com/vim-pandoc/vim-pandoc-syntax/blob/68d7249/doc/pandoc-syntax.txt#L45-L50
[4]: https://github.com/vim-pandoc/vim-pandoc-syntax/blob/5056e63/syntax/pandoc.vim#L37-L72
[5]: https://www.markdownguide.org/extended-syntax

Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
Co-authored-by: Sven Greb <development@svengreb.de>

Closes GH-220
2021-09-12 23:08:57 +02:00
Arctic Ice Studio 7e8d8abec9 Merge branch 'release/0.17.0' 2021-07-10 14:39:46 +02:00
Arctic Ice Studio bad9f6a5f2 Release version 0.17.0 2021-07-10 14:39:39 +02:00
Ferran Jovell 5d1f14776a Add support for nvim-treesitter/nvim-treesitter (#253)
Neovim version 0.5 [1] is a long-time awaited update that introduces
features like tree-sitter [2][3] support and native LSP [4][5].
Even though Neovim devides more and more from Vim through specific
features like first-class Lua support with custom APIs, the highlighting
for tree-sitter is achived through "normal" syntax highlighting groups.
Most of the groups are already linked by the nvim-treesitter plugin by
default [6] so only a few groups have been adjuated for now to fit the
Nord style.

[1]: https://github.com/neovim/neovim/releases/tag/v0.5.0
[2]: https://github.com/tree-sitter/tree-sitter
[3]: https://github.com/nvim-treesitter/nvim-treesitter
[4]: https://neovim.io/doc/user/lsp.html
[5]: https://github.com/neovim/nvim-lspconfig
[6]: https://github.com/nvim-treesitter/nvim-treesitter/blob/90f15d9/plugin/nvim-treesitter.vim

Co-authored-by: Ferran Jovell <ferran.jovell@gmail.com>
Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
Co-authored-by: Sven Greb <development@svengreb.de>

Closes GH-235
2021-07-10 14:39:39 +02:00
Arctic Ice Studio 537c66ca7c Merge branch 'release/0.16.0' 2021-06-09 21:54:55 +02:00
Arctic Ice Studio a2d1bcc668 Release version 0.16.0 2021-06-09 21:47:22 +02:00
Arctic Ice Studio 07452c7128
Support for php.vim plugin (#263)
This is a follow up for arcticicestudio/nord-vim#218 [1] which added
highlighting groups for the bundled PHP syntax, but the groups are
actually defined by the StanAngeloff/php.vim [2] plugin.
Therefore the added highlighting calls will be moved to a plugin
section.
Additionally, the `phpClassExtends` and `phpClassImplements` groups
have been added to improve the highlighting for classes that implement
or extended interfaces/classes. The `phpUseClass` has also been added to
improve the highlighting for imports.

[1]: https://github.com/arcticicestudio/nord-vim/pull/218
[2]: https://github.com/StanAngeloff/php.vim

Related to GH-218
Closes GH-262

Co-authored-by: Sven Greb <development@svengreb.de>
2021-06-09 21:28:26 +02:00
Martin Kunz e5a54c7f09
Fix typo in group names (#252)
Fixed two typos in group names:
  - `PMenuSel` -> `PmenuSel`
  - `PMenu` -> `Pmenu`

This mismatch was never really noticed because most of the time users
rely on plugins like coc [1] or vim-clap [2] which come with custom
highlighting groups and UI libraries.

[1]: https://github.com/neoclide/coc.nvim
[2]: https://github.com/liuchengxu/vim-clap

Co-authored-by: Sven Greb <development@svengreb.de>
2021-05-30 23:27:14 +02:00
Gabriel Sanches a3af928ad5
Update highlights for Neovim LSP diagnostics (#229)
To ensure compatibility with the latest versions of Neovim LSP the
highlighting groups for diagnostics have been adapted to the changes
of neovim/neovim#12655 [1].
See :help lsp-highlight-diagnostics [2] for more details.

Note that LSP will be available as of Neovim 0.5 which is (at the time
of this commit) still in development and only available as nighly build.
Also see great articles from Nord Vim contributors like "Neovim (0.5) Is
Overpowering" [3] for more information about Neovim 0.5 features,
including LSP.

[1]: https://github.com/neovim/neovim/pull/12655
[2]: https://neovim.io/doc/user/lsp.html
[3]: https://crispgm.com/page/neovim-is-overpowering.html

Co-authored-by: Sven Greb <development@svengreb.de>

Closes GH-229
Closes GH-248
2021-05-29 15:08:25 +02:00
Arctic Ice Studio f3f28b939f
Conceal highlighting group support (#261)
The `Conceal` group was not supported which could have led to rendering
problems for (Unicode) characters that require special encoding like
the ones from the Greek alphabet [1] that are often used in LaTeX [3] or
Pandoc [4] documents. These characters were highlighted with the default
background color which makes them kind of unreadable with the theme
foreground color.
See `:help conceal` and `:help concealcursor` for more details about
concealing in Vim.

To fix the problem, the `Conceal` group has been added with its
background color set to `NONE` for GUI and terminal mode to either use
the terminal default background color or let loaded scripts apply custom
styles based on the current runtime context.

The problem has been reported in GH-149, GH-207 and GH-211 with LaTeX
and Pandoc being used by the reporters. PR GH-220 adds support for
vim-pandoc/vim-pandoc-syntax [5] specific highlighting groups and can be
merged after adding basic support for `Conceal`.

[1]: https://en.wikipedia.org/wiki/Greek_alphabet
[2]: https://www.overleaf.com/learn/latex/mathematical_expressions
[3]: https://www.latex-project.org
[4]: https://pandoc.org
[5]: https://github.com/vim-pandoc/vim-pandoc-syntax

Co-authored-by: Sven Greb <development@svengreb.de>

Closes GH-256
2021-05-29 00:24:26 +02:00
Jan Damm 5867535cea
Add public API function to get Nord colors (#224)
Implemented the `NordPalette` pubic API function that returns all Nord
colors as dictionary. This allows to use the colors in other Vim scripts
without the need to copy & paste the colors from the documentations or
the Nord Vim theme sources.

Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
Co-authored-by: Sven Greb <development@svengreb.de>

Closes GH-224
2021-05-02 11:35:08 +02:00
Arctic Ice Studio ea7ff9c343
Add support for the "nathanaelkane/vim-indent-guides" plugin (#226)
The even and odd highlighting blocks using `nord1` and `nord2` (`nord3`
in terminal mode) to provide a subtle and non-disturbing style.

Note that the custom theme colors [1] are only applied when the
`indent_guides_auto_colors` variable has been set to `0`:

```vim
let g:indent_guides_auto_colors = 0
```

[1]: https://github.com/nathanaelkane/vim-indent-guides#setting-custom-indent-colors

Resolves GH-186
2020-10-08 21:48:31 +02:00
Yeri Pratama b3c46c8793
Support highlighting for PHP classes and functions/methods (#218)
Before classes and functions used the default foreground color which made it hard to distinguish them from variables and syntactic characters like braces. The new style now matches other ports and highlighting engines and makes it easy to identify these elements with Nord's authentic appearance.

Closes GH-218
2020-08-13 11:21:12 +02:00
Dani 8a9754ce6c
Add coc error/warning highlight (#213)
Added the coc.nvim [1] highlighting groups for errors and warnings using their respective foreground colors and the `undercurl` font style.

[1]: https://github.com/neoclide/coc.nvim

Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
Co-authored-by: Sven Greb <development@svengreb.de>
2020-07-16 21:23:44 +02:00
Arctic Ice Studio 57dffa7469 Merge branch 'release/0.15.0' 2020-07-06 08:06:30 +02:00
Arctic Ice Studio 16709e6576 Release version 0.15.0 2020-07-06 08:06:09 +02:00
Johan 5d58f9b598 Add support for vim-clap (#178)
Added basic support for vim-clap [1], a modern and performant generic finder and dispatcher for Vim and NeoVim.

[1]: https://github.com/liuchengxu/vim-clap

GH-178

Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
Co-authored-by: Sven Greb <development@svengreb.de>
2020-07-06 08:06:09 +02:00
iamdi 776a02a89e Add basic TypeScript and improve TSX support (#208)
Basic highlighting support for TypeScript & TSX

Added basic support to highlight TypeScript & TSX syntax more
consistently through the HerringtonDarkholme/yats.vim plugin [1].
This includes improvements to highlight...

1. ...TypeScript interface an class names using `nord7` as foreground,
   where interfaces also use the bold attribute, to match with
   structs/classes.
2. ...global methods like e.g. `setTimeout` with `nord8` using the
   italic attribute to mark it kind of static. 
3. ...regular expressions with `nord13` as foreground color instead of
   the normal color for quoted strings (`nord14`) to make it easier to
   differ between both. 
4. ...global objects like `Error`, `JSON` and `console` with `nord7`.
5. ...primitive/builtin types like `string` with `nord9`.
6. ...TypeScript type references with `nord7`.
7. ...TypeScript specific characters like for type annotations (`:`) and
   member optionality (`?`) as operator with `nord9`.

This also includes improvements for "vanilla" JavaScript elements.

[1]: https://github.com/HerringtonDarkholme/yats.vim

Resolves GH-208

Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
Co-authored-by: Sven Greb <development@svengreb.de>
2020-07-06 08:06:09 +02:00
Alexander Jeurissen bf09c474fe Add nvim-lsp support (#198)
Added highlighting support for the build-in Neovim language server [1] using the coc.nvim [2] groups as reference.

[1]: https://github.com/neovim/nvim-lsp
[2]: https://github.com/neoclide/coc.nvim
2020-07-06 08:06:06 +02:00
john.hennessey e3267e0c15 adds coc error gutter support 2020-07-06 08:02:27 +02:00
Arctic Ice Studio 6ff18463f2 Merge branch 'release/0.15.0' into develop 2020-07-06 07:54:08 +02:00
Arctic Ice Studio a46877360a Release version 0.15.0 2020-07-06 07:40:16 +02:00
Johan 7a52f66cfc
Add support for vim-clap (#178)
Added basic support for vim-clap [1], a modern and performant generic finder and dispatcher for Vim and NeoVim.

[1]: https://github.com/liuchengxu/vim-clap

GH-178

Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
Co-authored-by: Sven Greb <development@svengreb.de>
2020-07-05 15:53:01 +02:00
iamdi 1bd44ade46
Add basic TypeScript and improve TSX support (#208)
Basic highlighting support for TypeScript & TSX

Added basic support to highlight TypeScript & TSX syntax more
consistently through the HerringtonDarkholme/yats.vim plugin [1].
This includes improvements to highlight...

1. ...TypeScript interface an class names using `nord7` as foreground,
   where interfaces also use the bold attribute, to match with
   structs/classes.
2. ...global methods like e.g. `setTimeout` with `nord8` using the
   italic attribute to mark it kind of static. 
3. ...regular expressions with `nord13` as foreground color instead of
   the normal color for quoted strings (`nord14`) to make it easier to
   differ between both. 
4. ...global objects like `Error`, `JSON` and `console` with `nord7`.
5. ...primitive/builtin types like `string` with `nord9`.
6. ...TypeScript type references with `nord7`.
7. ...TypeScript specific characters like for type annotations (`:`) and
   member optionality (`?`) as operator with `nord9`.

This also includes improvements for "vanilla" JavaScript elements.

[1]: https://github.com/HerringtonDarkholme/yats.vim

Resolves GH-208

Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
Co-authored-by: Sven Greb <development@svengreb.de>
2020-06-20 12:10:58 +02:00
Arctic Ice Studio 2124a5a760 Merge branch 'release/0.14.0' 2020-06-16 07:58:49 +02:00
Arctic Ice Studio 9a2cebb1cb Release version 0.14.0 2020-06-16 07:58:36 +02:00
xulongwu4 e420e7f38d Use transparent background for gutter line number in GUI mode (#204)
The `LineNr` and `CursorLineNr` highlight groups now have a transparent
background in GUI mode.

Before it was set to `nord0_gui` which worked fine in most cases.
However, some plugins use these highlight groups to render their content
in a popup window which can potentially have a different background
color. This caused some issues e.g. for the fuzzy search plugin
LeaderF [1].

The compatibility with the `g:nord_cursor_line_number_background`
theme configuration has been verified to work as expected in both modes
when it is set to `0` or `1`.

This change is not related to the terminal mode or when using
`set notermguicolors` since `ctermbg` for `LineNr` and `CursorLineNr`
is set to `NONE` by default.

[1]: https://github.com/Yggdroot/LeaderF
2020-06-16 07:58:36 +02:00