aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins/colorscheme.lua
blob: aaae1db46ae46dd5777236ccca39a06e6640c381 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
return {
  "craftzdog/solarized-osaka.nvim",
  lazy = false,
  priority = 1000,
  opts = {},
  config = function()
    -- =====================================================
    -- Solarized Osaka Colorscheme Configuration
    -- Enhanced setup with better customization
    -- =====================================================
    
    require("solarized-osaka").setup({
      -- ========== Core Settings ==========
      transparent = true, -- Enable transparent background
      terminal_colors = true, -- Configure terminal colors
      
      -- ========== Syntax Highlighting Styles ==========
      styles = {
        comments = { italic = true },
        keywords = { italic = true, bold = false },
        functions = { italic = false, bold = true },
        variables = { bold = false },
        conditionals = { italic = true },
        loops = { italic = true },
        constants = { bold = true },
        strings = { italic = false },
        types = { bold = true },
        
        -- ========== UI Element Styles ==========
        sidebars = "dark", -- Sidebar style: "dark", "transparent", "normal"
        floats = "dark", -- Floating window style
      },
      
      -- ========== UI Configuration ==========
      sidebars = { 
        "qf", "help", "vista_kind", "terminal", 
        "packer", "spectre_panel", "toggleterm",
        "Trouble", "NvimTree", "neo-tree"
      },
      day_brightness = 0.4, -- Better brightness for day variant
      hide_inactive_statusline = false,
      dim_inactive = true, -- Dim inactive windows for better focus
      lualine_bold = true,

      -- ========== Color Customization ==========
      ---@param colors ColorScheme
      on_colors = function(colors)
        -- Enhance base colors for better readability
        colors.bg_dark = "#16161e"
        colors.bg_float = "#1a1a23"
        colors.border = "#27a1b9"
        colors.comment = "#565f89"
        colors.gitSigns = {
          add = "#449dab",
          change = "#6183bb",
          delete = "#f7768e",
        }
      end,

      -- ========== Highlight Customization ==========
      ---@param highlights Highlights
      ---@param colors ColorScheme
      on_highlights = function(hl, c)
        -- ========== Indent Guides ==========
        hl.IblIndent = { fg = c.base03, nocombine = true }
        hl.IndentBlanklineChar = { fg = c.blue, nocombine = true }
        hl.IndentBlanklineContextChar = { fg = c.orange500, nocombine = true }
        
        -- ========== Telescope Enhanced Styling ==========
        local prompt = "#2d3149"
        local results = "#1f2335"
        local preview = "#24283b"
        
        hl.TelescopeNormal = { bg = c.bg_dark, fg = c.fg_dark }
        hl.TelescopeBorder = { bg = c.bg_dark, fg = c.border }
        hl.TelescopePromptNormal = { bg = prompt }
        hl.TelescopePromptBorder = { bg = prompt, fg = c.border }
        hl.TelescopePromptTitle = { bg = c.blue, fg = c.bg_dark, bold = true }
        hl.TelescopePreviewTitle = { bg = c.green, fg = c.bg_dark, bold = true }
        hl.TelescopeResultsTitle = { bg = c.purple, fg = c.bg_dark, bold = true }
        hl.TelescopeSelection = { bg = "#364A82", fg = c.fg }
        hl.TelescopeSelectionCaret = { fg = c.red }
        
        -- ========== Enhanced UI Elements ==========
        -- Better cursor line
        hl.CursorLine = { bg = "#1e202a" }
        hl.CursorLineNr = { fg = c.orange, bold = true }
        
        -- Improved visual selection
        hl.Visual = { bg = "#33467c" }
        
        -- Better search highlights
        hl.Search = { bg = c.yellow, fg = c.bg_dark }
        hl.IncSearch = { bg = c.orange, fg = c.bg_dark }
        
        -- Enhanced diagnostics
        hl.DiagnosticError = { fg = c.red }
        hl.DiagnosticWarn = { fg = c.yellow }
        hl.DiagnosticInfo = { fg = c.blue }
        hl.DiagnosticHint = { fg = c.cyan }
        
        -- ========== Plugin-specific Highlights ==========
        -- Neo-tree
        hl.NeoTreeNormal = { bg = c.bg_dark }
        hl.NeoTreeNormalNC = { bg = c.bg_dark }
        
        -- Which-key
        hl.WhichKey = { fg = c.blue }
        hl.WhichKeyGroup = { fg = c.purple }
        hl.WhichKeyDesc = { fg = c.fg }
        
        -- Notify
        hl.NotifyBackground = { bg = c.bg_dark }
        
        -- GitSigns
        hl.GitSignsAdd = { fg = c.green }
        hl.GitSignsChange = { fg = c.yellow }
        hl.GitSignsDelete = { fg = c.red }
      end,
    })

    -- =====================================================
    -- Apply Colorscheme
    -- =====================================================
    vim.cmd.colorscheme("solarized-osaka")
    
    -- =====================================================
    -- Additional UI Enhancements
    -- =====================================================
    -- Better cursor visibility
    vim.opt.guicursor = "n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50"
    
    -- Enhanced visual feedback
    vim.opt.cursorline = true
    vim.opt.number = true
    vim.opt.relativenumber = true
    vim.opt.signcolumn = "yes"
    
    -- Better terminal colors
    if vim.fn.has("termguicolors") == 1 then
      vim.opt.termguicolors = true
    end

  end,
}