forked from nordtheme/vim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
74 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
MIT License (MIT) | ||
|
||
Copyright (c) 2016-present Arctic Ice Studio <[email protected]> (http://arcticicestudio.com) | ||
Copyright (c) 2016-present Sven Greb <code@svengreb.de> (http://svengreb.de) | ||
Copyright (C) 2016-present Arctic Ice Studio <[email protected]> (https://www.arcticicestudio.com) | ||
Copyright (C) 2016-present Sven Greb <development@svengreb.de> (https://www.svengreb.de) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
" Copyright (c) 2016-present Arctic Ice Studio <[email protected]> | ||
" Copyright (c) 2016-present Sven Greb <code@svengreb.de> | ||
" Copyright (C) 2016-present Arctic Ice Studio <[email protected]> | ||
" Copyright (C) 2016-present Sven Greb <development@svengreb.de> | ||
|
||
" Project: Nord Vim | ||
" Repository: https://github.com/arcticicestudio/nord-vim | ||
" License: MIT | ||
|
||
let s:nord_vim_version="0.9.0" | ||
let s:nord_vim_version="0.10.0" | ||
let g:airline#themes#nord#palette = {} | ||
|
||
let s:nord0_gui = "#2E3440" | ||
|
@@ -44,25 +44,25 @@ let s:nord6_term = "15" | |
|
||
let s:NMain = [s:nord1_gui, s:nord8_gui, s:nord1_term, s:nord8_term] | ||
let s:NRight = [s:nord1_gui, s:nord9_gui, s:nord1_term, s:nord9_term] | ||
let s:NMiddle = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] | ||
let s:NMiddle = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] | ||
let g:airline#themes#nord#palette.normal = airline#themes#generate_color_map(s:NMain, s:NRight, s:NMiddle) | ||
|
||
let s:IMain = [s:nord1_gui, s:nord14_gui, s:nord1_term, s:nord6_term] | ||
let s:IRight = [s:nord1_gui, s:nord9_gui, s:nord1_term, s:nord9_term] | ||
let s:IMiddle = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] | ||
let s:IMiddle = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] | ||
let g:airline#themes#nord#palette.insert = airline#themes#generate_color_map(s:IMain, s:IRight, s:IMiddle) | ||
|
||
let s:RMain = [s:nord1_gui, s:nord14_gui, s:nord1_term, s:nord14_term] | ||
let s:RRight = [s:nord1_gui, s:nord9_gui, s:nord1_term, s:nord9_term] | ||
let s:RMiddle = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] | ||
let s:RMiddle = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] | ||
let g:airline#themes#nord#palette.replace = airline#themes#generate_color_map(s:RMain, s:RRight, s:RMiddle) | ||
|
||
let s:VMain = [s:nord1_gui, s:nord7_gui, s:nord1_term, s:nord7_term] | ||
let s:VRight = [s:nord1_gui, s:nord9_gui, s:nord1_term, s:nord9_term] | ||
let s:VMiddle = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] | ||
let s:VMiddle = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] | ||
let g:airline#themes#nord#palette.visual = airline#themes#generate_color_map(s:VMain, s:VRight, s:VMiddle) | ||
|
||
let s:IAMain = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] | ||
let s:IARight = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] | ||
let s:IAMiddle = [s:nord4_gui, s:nord1_gui, s:nord4_term, s:nord1_term] | ||
let s:IAMain = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] | ||
let s:IARight = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] | ||
let s:IAMiddle = [s:nord5_gui, s:nord1_gui, s:nord5_term, s:nord1_term] | ||
let g:airline#themes#nord#palette.inactive = airline#themes#generate_color_map(s:IAMain, s:IARight, s:IAMiddle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
" Copyright (c) 2016-present Arctic Ice Studio <[email protected]> | ||
" Copyright (c) 2016-present Sven Greb <code@svengreb.de> | ||
" Copyright (C) 2016-present Arctic Ice Studio <[email protected]> | ||
" Copyright (C) 2016-present Sven Greb <development@svengreb.de> | ||
|
||
" Project: Nord Vim | ||
" Repository: https://github.com/arcticicestudio/nord-vim | ||
" License: MIT | ||
|
||
let s:nord_vim_version="0.9.0" | ||
let s:nord_vim_version="0.10.0" | ||
let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} | ||
|
||
let s:nord0 = ["#2E3440", "NONE"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
" Copyright (c) 2016-present Arctic Ice Studio <[email protected]> | ||
" Copyright (c) 2016-present Sven Greb <code@svengreb.de> | ||
" Copyright (C) 2016-present Arctic Ice Studio <[email protected]> | ||
" Copyright (C) 2016-present Sven Greb <development@svengreb.de> | ||
|
||
" Project: Nord Vim | ||
" Repository: https://github.com/arcticicestudio/nord-vim | ||
|
@@ -13,13 +13,14 @@ if version > 580 | |
endif | ||
|
||
let g:colors_name = "nord" | ||
let s:nord_vim_version="0.9.0" | ||
let s:nord_vim_version="0.10.0" | ||
set background=dark | ||
|
||
let s:nord0_gui = "#2E3440" | ||
let s:nord1_gui = "#3B4252" | ||
let s:nord2_gui = "#434C5E" | ||
let s:nord3_gui = "#4C566A" | ||
let s:nord3_gui_bright = "#616E88" | ||
let s:nord4_gui = "#D8DEE9" | ||
let s:nord5_gui = "#E5E9F0" | ||
let s:nord6_gui = "#ECEFF4" | ||
|
@@ -100,8 +101,17 @@ if !exists('g:nord_uniform_status_lines') | |
let g:nord_uniform_status_lines = 0 | ||
endif | ||
|
||
if !exists("g:nord_comment_brightness") | ||
let g:nord_comment_brightness = 0 | ||
function! s:logWarning(msg) | ||
echohl WarningMsg | ||
echomsg 'nord: warning: ' . a:msg | ||
echohl None | ||
endfunction | ||
|
||
if exists("g:nord_comment_brightness") | ||
call s:logWarning('Variable g:nord_comment_brightness has been deprecated and will be removed in version 1.0.0!' . | ||
\' The comment color brightness has been increased by 10% by default.' . | ||
\' Please see https://github.com/arcticicestudio/nord-vim/issues/145 for more details.') | ||
let g:nord_comment_brightness = 10 | ||
endif | ||
|
||
if !exists("g:nord_uniform_diff_background") | ||
|
@@ -168,6 +178,11 @@ call s:hi("healthSuccess", s:nord14_gui, s:nord1_gui, s:nord14_term, s:nord1_ter | |
call s:hi("healthWarning", s:nord13_gui, s:nord1_gui, s:nord13_term, s:nord1_term, "", "") | ||
call s:hi("TermCursorNC", "", s:nord1_gui, "", s:nord1_term, "", "") | ||
|
||
"+- Vim 8 Terminal Colors -+ | ||
if has('terminal') | ||
let g:terminal_ansi_colors = [s:nord1_gui, s:nord11_gui, s:nord14_gui, s:nord13_gui, s:nord9_gui, s:nord15_gui, s:nord8_gui, s:nord5_gui, s:nord3_gui, s:nord11_gui, s:nord14_gui, s:nord13_gui, s:nord9_gui, s:nord15_gui, s:nord7_gui, s:nord6_gui] | ||
endif | ||
|
||
"+- Neovim Terminal Colors -+ | ||
if has('nvim') | ||
let g:terminal_color_0 = s:nord1_gui | ||
|
@@ -240,7 +255,7 @@ call s:hi("VertSplit", s:nord2_gui, s:nord1_gui, s:nord3_term, s:nord1_term, "NO | |
"+----------------------+ | ||
call s:hi("Boolean", s:nord9_gui, "", s:nord9_term, "", "", "") | ||
call s:hi("Character", s:nord14_gui, "", s:nord14_term, "", "", "") | ||
call s:hi("Comment", s:nord3_gui_brightened[g:nord_comment_brightness], "", s:nord3_term, "", s:italicize_comments, "") | ||
call s:hi("Comment", s:nord3_gui_bright, "", s:nord3_term, "", s:italicize_comments, "") | ||
call s:hi("Conditional", s:nord9_gui, "", s:nord9_term, "", "", "") | ||
call s:hi("Constant", s:nord4_gui, "", "NONE", "", "", "") | ||
call s:hi("Define", s:nord9_gui, "", s:nord9_term, "", "", "") | ||
|
@@ -466,7 +481,7 @@ hi! link vimFunction Function | |
hi! link vimUserFunc Function | ||
|
||
call s:hi("xmlAttrib", s:nord7_gui, "", s:nord7_term, "", "", "") | ||
call s:hi("xmlCdataStart", s:nord3_gui, "", s:nord3_term, "", "bold", "") | ||
call s:hi("xmlCdataStart", s:nord3_gui_bright, "", s:nord3_term, "", "bold", "") | ||
call s:hi("xmlNamespace", s:nord7_gui, "", s:nord7_term, "", "", "") | ||
hi! link xmlAttribPunct Delimiter | ||
hi! link xmlCdata Comment | ||
|