theme.lua 1.0 KB

1234567891011121314151617181920212223
  1. vim.o.termguicolors = true
  2. vim.g.sonokai_transparent_background = true
  3. vim.g.sonokai_disable_terminal_colors = true
  4. vim.api.nvim_create_autocmd('ColorScheme', {
  5. pattern = 'sonokai',
  6. callback = function()
  7. vim.api.nvim_set_hl(0, 'MiniIndentscopeSymbol', { link = 'Whitespace' })
  8. local configuration = vim.fn['sonokai#get_configuration']()
  9. local palette = vim.fn['sonokai#get_palette'](configuration.style, {[vim.type_idx]=vim.types.dictionary})
  10. vim.fn['sonokai#highlight']('MiniStatuslineModeNormal', palette.black, palette.blue)
  11. vim.fn['sonokai#highlight']('MiniStatuslineModeCommand', palette.black, palette.yellow)
  12. vim.fn['sonokai#highlight']('MiniStatuslineModeInsert', palette.black, palette.green)
  13. vim.fn['sonokai#highlight']('MiniStatuslineModeVisual', palette.black, palette.orange)
  14. vim.fn['sonokai#highlight']('MiniStatuslineModeReplace', palette.black, palette.red)
  15. vim.fn['sonokai#highlight']('MiniStatuslineModeOther', palette.black, palette.green)
  16. end,
  17. })
  18. vim.cmd('colorscheme sonokai')