Commit graph

233 commits

Author SHA1 Message Date
Jan Steinke 8035ba071b
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-01-01 21:28:50 +01:00
Arctic Ice Studio df497a7b39 Merge branch 'release/0.18.0' into develop 2021-09-12 23:08:31 +02:00
Arctic Ice Studio b64dc119b0 Release version 0.18.0 2021-09-12 23:07:55 +02:00
George Tom e3e8a75cd3
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 22:14:42 +02:00
Jan Steinke 02ddfadb9e
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-05 21:10:16 +02:00
Timothée Poisot 8d8b9bf86b
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-07-11 10:21:00 +02:00
Arctic Ice Studio 851322a9ce Merge branch 'release/0.17.0' into develop 2021-07-10 14:38:58 +02:00
Arctic Ice Studio d30ea87f83 Release version 0.17.0 2021-07-10 14:38:44 +02:00
Ferran Jovell b3e712a994
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 12:24:11 +02:00
Arctic Ice Studio 1380ad6876 Merge branch 'release/0.16.0' into develop 2021-06-09 21:47:36 +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 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 e26b5d8bc0 Merge branch 'release/0.14.0' into develop 2020-06-16 07:55:39 +02:00
Arctic Ice Studio a5c4a83224 Release version 0.14.0 2020-06-16 07:55:20 +02:00
xulongwu4 6323f662d6
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-05-07 09:21:20 +02:00
xulongwu4 974a91906d
Consistent Error and MoreMsg highlight group consistent between console and GUI modes. (#202)
Consistent `Error` and `MoreMsg` highligh. in term and GUI mode (#202)

Before the `Error` group in GUI mode used `nord0` as foreground color
instead of `nord4` resulting in a bad contrast.

Also after checking  ( links to it)
Also since there was also no color defined for terminal mode for the
`MoreMsg` group (see `:help MoreMsg` that link to `:help more-prompt`)
Vim used the default color which was some kind of green.
To ensure it matches Nord's style it has now been changed to use `nord8`
(main accent color) for both terminal and GUI mode.
This can be tested by running `:echon "MESSAGE\n"` taht produces a lot
of lines that won't fit on the current screen space anymore.

Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
Co-authored-by: Sven Greb <development@svengreb.de>
2020-04-28 16:27:09 +02:00
Alexander Jeurissen 0ccf70b6b0
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-03-10 06:12:41 +01:00
Arctic Ice Studio aa1470403a Merge branch 'release/0.13.0' into develop 2019-12-17 20:14:45 +01:00
Arctic Ice Studio 7fd74817c3 Prepare release version 0.13.0 2019-12-17 20:13:44 +01:00
Arctic Ice Studio 0d352c4b3d
Remove underline from gutter line numbers (#185)
Vim version 8.1.2029 [1] added the `underline` attribute for the
`CursorLineNr` group to `cterm` [2] based on vim/vim#4933 [3].
This change resulted in gutter line numbers being underlined which has
now been reverted back to Nord's style by explicitly setting the
attribute for the group to `NONE`.

[1]: https://github.com/vim/vim/releases/tag/v8.1.2029
[2]: d9b0d83b13...017ba07fa2 (diff-80fffb3e9c20e93e5b2328a9a20e19c9)
[3]: https://github.com/vim/vim/pull/4933

Resolves GH-174
2019-12-17 13:06:51 +01:00
Arctic Ice Studio 38ab4a9c97
Plugin support for vim-startify (#176)
Added custom highlight groups of the `vim-startify` (1) plugin to adapt
to Nord's style.

References:
  (1) https://github.com/mhinz/vim-startify

Resolves GH-159
2019-10-10 08:39:12 +02:00
Jose M. Murinello 73b3d340a7 Uniform status lines config for bundled airline and lightline themes (#169)
The included theme bundles have not supported the "uniform status line" feature (GH-58), which allows to change the background color of the status bar (StatusLine) group to `nord3`.

Related to GH-58
Resolves GH-168
2019-07-16 20:17:51 +02:00
Arctic Ice Studio 81d80e4a97
Fix typo (missing whitespace) (#165)
Fix typo (missing whitespace)
2019-06-11 08:12:04 +02:00
Radu Vasilescu aaa496f835
Fix typo
line 13
2019-06-10 14:39:27 -04:00
Arctic Ice Studio a779726963
adds coc error gutter support (#164)
adds coc error gutter support
2019-06-09 17:18:45 +02:00
John Hennessey f68295473f
Update colors/nord.vim
Co-Authored-By: Arctic Ice Studio <development@arcticicestudio.com>
2019-06-07 15:05:55 -04:00
john.hennessey 273e7ea84d remove duplicated entries 2019-06-04 18:38:01 -04:00
john.hennessey 228f63e3f8 adds coc error gutter support 2019-06-04 18:34:39 -04:00
Arctic Ice Studio 311d964d3a Merge branch 'release/v0.12.0' into develop 2019-05-25 10:29:32 +02:00
Arctic Ice Studio 7f28e7cec1 Prepare release version 0.12.0 2019-05-25 10:29:20 +02:00
Arctic Ice Studio 18a4e35015
Theme configuration for bold font style rendering (#161)
Theme configuration for bold font style rendering
2019-05-25 09:45:08 +02:00
Arctic Ice Studio b193e08891 Theme configuration for bold font style rendering
Implemented a nw theme configuration for the rendering of bold font
styles.

This commit adds the new `nord_bold` theme configuration to explicitly
toggle bold font rendering styles.
It is enabled by default when running for both in GUI and terminal mode.

The reason for this standard behavior is the fact that most terminals
and shells are capable to handle bold fonts.

GH-143
2019-05-24 11:45:22 +02:00
Arctic Ice Studio 7be26147c8
Nord Docs Transition (#160)
Nord Docs Transition
2019-05-21 21:32:38 +02:00
Arctic Ice Studio 72cb5d702a Nord Docs Transition
All documentations and assets have been moved to the official Nord
website and documentations (1,2).

References:
  (1) nordtheme.com/ports/vim
  (2) arcticicestudio/nord-docs

GH-158
2019-05-21 21:26:11 +02:00
Arctic Ice Studio de24841add
changes of IncSearch color so that were difference from Search color (#140)
changes of IncSearch color so that were difference from Search color
2019-04-23 21:49:44 +02:00
Arctic Ice Studio 329ae173fa
Update colors/nord.vim
Co-Authored-By: aborzunov <Andrey.Borzunov@gmail.com>
2019-04-22 20:57:07 +03:00
Arctic Ice Studio d8105311e0 Merge branch 'release/0.11.0' into develop 2019-04-18 10:04:01 +02:00
Arctic Ice Studio bfa83e8dcc Prepare release version 0.11.0 2019-04-18 10:03:29 +02:00
Arctic Ice Studio 8de69ba097
Merge pull request #154 from arcticicestudio/feature/gh-138-basic-rust-syntax-highlighting-support
Basic syntax highlighting support for Rust
2019-04-15 22:18:30 +02:00