onedark.vim 683 B

1234567891011121314151617181920212223
  1. " onedark.vim override: Don't set a background color when running in a terminal;
  2. if (has("autocmd") && !has("gui_running"))
  3. augroup colorset
  4. autocmd!
  5. let s:white = { "gui": "#ABB2BF", "cterm": "145", "cterm16" : "7" }
  6. autocmd ColorScheme * call onedark#set_highlight("Normal", { "fg": s:white }) " `bg` will not be styled since there is no `bg` setting
  7. augroup END
  8. endif
  9. hi Comment cterm=italic
  10. let g:onedark_hide_endofbuffer=1
  11. let g:onedark_terminal_italics=1
  12. let g:onedark_termcolors=256
  13. syntax on
  14. colorscheme onedark
  15. " checks if your terminal has 24-bit color support
  16. if (has("termguicolors"))
  17. set termguicolors
  18. hi LineNr ctermbg=NONE guibg=NONE
  19. endif