theme.vim 1.1 KB

12345678910111213141516171819202122232425262728
  1. lua << EOF
  2. require('onedark').setup {
  3. style = 'cool', -- 'cool' or 'vibrant' are usually better for TS
  4. transparent = false,
  5. term_colors = true,
  6. -- Remove overrides to use theme defaults
  7. code_style = {
  8. comments = 'italic',
  9. },
  10. }
  11. require('onedark').load()
  12. -- Force colors for diagnostics and spell check underlines ONLY
  13. vim.api.nvim_set_hl(0, 'DiagnosticUnderlineError', { undercurl = true, sp = '#ff0000' })
  14. vim.api.nvim_set_hl(0, 'DiagnosticUnderlineWarn', { undercurl = true, sp = '#ff8800' })
  15. vim.api.nvim_set_hl(0, 'SpellBad', { undercurl = true, sp = '#ffff00' })
  16. vim.api.nvim_set_hl(0, 'SpellCap', { undercurl = true, sp = '#ffff00' })
  17. vim.api.nvim_set_hl(0, 'SpellLocal', { undercurl = true, sp = '#ffff00' })
  18. vim.api.nvim_set_hl(0, 'SpellRare', { undercurl = true, sp = '#ffff00' })
  19. -- GitSigns
  20. vim.api.nvim_set_hl(0, 'GitSignsAdd', { fg = '#98c379', bg = '#2e3f34' })
  21. vim.api.nvim_set_hl(0, 'GitSignsChange', { fg = '#e5c07b', bg = '#3e3d32' })
  22. vim.api.nvim_set_hl(0, 'GitSignsDelete', { fg = '#e06c75', bg = '#3f2e2e' })
  23. EOF
  24. let g:airline_theme='onedark'
  25. set background=dark