8000 Simplify the conditions at the beginning of the theme by jvoisin · Pull Request #295 · nordtheme/vim · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Simplify the conditions at the beginning of the theme #295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 16 additions & 48 deletions colors/nord.vim
Original file line number Diff line number Diff line change
Expand Up @@ -72,68 +72,36 @@ let s:nord3_gui_brightened = [
\ "#7b88a1",
\ ]

if !exists("g:nord_bold")
let g:nord_bold = 1
endif

let s:bold = "bold,"
if g:nord_bold == 0
let s:bold = ""
endif

if !exists("g:nord_italic")
if has("gui_running") || $TERM_ITALICS == "true"
let g:nord_italic = 1
else
let g:nord_italic = 0
endif
endif
let g:nord_bold = get(g:, "nord_bold", 1)
let s:bold = (g:nord_bold == 0) ? "" : "bold,"

let s:italic = "italic,"
if g:nord_italic == 0
let s:italic = ""
endif
let C6A1 g:nord_underline = get(g:, "nord_underline", 1)
let s:underline = (g:nord_underline == 0) ? "NONE," : "underline,"

let s:underline = "underline,"
if ! get(g:, "nord_underline", 1)
let s:underline = "NONE,"
endif
let g:nord_italic = get(g:, "nord_italic", (has("gui_running") || $TERM_ITALICS == "true"))
let s:italic = (g:nord_italic == 0) ? "" : "italic,"

let s:italicize_comments = ""
if exists("g:nord_italic_comments")
if g:nord_italic_comments == 1
let s:italicize_comments = s:italic
endif
if get(g:, "nord_italic_comments", 0)
let s:italicize_comments = s:italic
endif

if !exists('g:nord_uniform_status_lines')
let g:nord_uniform_status_lines = 0
endif

function! s:logWarning(msg)
echohl WarningMsg
echomsg 'nord: warning: ' . a:msg
echohl None
endfunction
let g:nord_uniform_status_lines = get(g:, "nord_uniform_status_lines", 0)

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!' .
echohl WarningMsg
echomsg 'nord: warning: 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.')
\' Please see https://github.com/arcticicestudio/nord-vim/issues/145 for more details.'
echohl None
let g:nord_comment_brightness = 10
endif

if !exists("g:nord_uniform_diff_background")
let g:nord_uniform_diff_background = 0
endif
let g:nord_uniform_diff_background = get(g:, "nord_uniform_diff_background", 0)

if !exists("g:nord_cursor_line_number_background")
let g:nord_cursor_line_number_background = 0
endif
let g:nord_cursor_line_number_background = get(g:, "nord_cursor_line_number_background", 0)

if !exists("g:nord_bold_vertical_split_line")
let g:nord_bold_vertical_split_line = 0
endif
let g:nord_bold_vertical_split_line = get(g:, "nord_bold_vertical_split_line", 0)

function! s:hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp)
if a:guifg != ""
Expand Down
0