xonecas.io
56101
Df

dotfiles / commit e5eaba5

dotfiles: changes to themes and new statusline for nvim

xonecas2026-10-27 e5eaba5f3f5315cd032d9ae2ac47c1721903e9b7 parent 99f23ff

2 files changed

.config/mini-coding-agent/config.json+18−19
@@ -11,25 +11,24 @@
1111 "programStatus": true,
1212 "notifications": "both",
1313 "showImages": true,
14- "provider": "opencode-go",
15- "model": "deepseek-v4.1-flash",
16- "thinkingEffort": "low",
1714 "colorscheme": {
18- "comment": "#bdbdbd",
19- "prompt": "#97bedc",
20- "accent": "#00988e",
21- "err": "#e27373",
22- "warn": "#ffba7b",
23- "code": "#bdbdbd",
24- "diff_add": "#94b979",
25- "diff_delete": "#e27373",
26- "inline_code": "#00988e",
27- "link": "#97bedc",
28- "heading1": "#b1d8f6",
29- "heading2": "#1ab2a8",
30- "heading3": "#fbdaff",
31- "heading4": "#bddeab",
32- "heading5": "#ffdca0",
33- "heading6": "#ffa1a1"
15+ "comment": "#506477",
16+ "prompt": "#91B4D5",
17+ "accent": "#ADD7FF",
18+ "err": "#D0679D",
19+ "warn": "#FFFAC2",
20+ "code": "#5FB3A1",
21+ "output": "#E4F0FB",
22+ "diff_add": "#5DE4C7",
23+ "diff_delete": "#D0679D",
24+ "inline_code": "#A6ACCD",
25+ "link": "#91B4D5",
26+ "uri": "#89DDFF",
27+ "heading1": "#5FB3A1",
28+ "heading2": "#FFFAC2",
29+ "heading3": "#D0679D",
30+ "heading4": "#FCC5E9",
31+ "heading5": "#89DDFF",
32+ "heading6": "#ADD7FF"
3433 }
3534 }
.config/nvim/init.lua+87−10
@@ -19,10 +19,23 @@ vim.opt.rtp:prepend(lazypath)
1919 require("lazy").setup({
2020 spec = {
2121 -- Theme
22- {
23- "nanotech/jellybeans.vim",
22+ {
23+ 'olivercederborg/poimandres.nvim',
2424 lazy = false,
2525 priority = 1000,
26+ config = function()
27+ require('poimandres').setup {
28+ -- leave this setup function empty for default config
29+ -- or refer to the configuration section
30+ -- for configuration options
31+ disable_background = true,
32+ }
33+ end,
34+
35+ -- optionally set the colorscheme within lazy config
36+ init = function()
37+ vim.cmd("colorscheme poimandres")
38+ end
2639 },
2740
2841 -- Git signs
@@ -31,13 +44,6 @@ require("lazy").setup({
3144 opts = {},
3245 },
3346
34- -- Statusline
35- {
36- 'nvim-mini/mini.statusline',
37- version = false,
38- opts = {},
39- },
40-
4147 -- Fuzzy Finder
4248 {
4349 'nvim-telescope/telescope.nvim',
@@ -165,4 +171,75 @@ keymap('n', 'k', 'gk', { noremap = true })
165171 vim.api.nvim_create_user_command('Q', 'q', {})
166172 vim.api.nvim_create_user_command('W', 'w', {})
167173
168-vim.cmd.colorscheme("jellybeans")
174+-- Statusline
175+local mode_groups = {
176+ { 'NORMAL', 'String' },
177+ { 'INSERT', 'Constant' },
178+ { 'VISUAL', 'Special' },
179+ { 'REPLACE', 'ErrorMsg' },
180+ { 'COMMAND', 'WarningMsg' },
181+ { 'TERMINAL', 'Title' },
182+}
183+local mode_keys = { n = 1, i = 2, v = 3, R = 4, c = 5, t = 6 }
184+local git_groups = {
185+ { 'StatusGitAdd', '+', 'DiffAdd DiagnosticOk String' },
186+ { 'StatusGitChange', '~', 'DiffChange DiagnosticWarn Constant' },
187+ { 'StatusGitDelete', '-', 'DiffDelete DiagnosticError ErrorMsg' },
188+}
189+
190+local function apply_theme()
191+ local function fg(names)
192+ for name in names:gmatch('%S+') do
193+ local color = vim.api.nvim_get_hl(0, { name = name, link = false }).fg
194+ if color then return color end
195+ end
196+ end
197+ for _, m in ipairs(mode_groups) do
198+ local color = fg(m[2])
199+ if color then vim.api.nvim_set_hl(0, 'StatusMode' .. m[1], { fg = color, bold = true }) end
200+ end
201+ for _, g in ipairs(git_groups) do
202+ local color = fg(g[3])
203+ if color then vim.api.nvim_set_hl(0, g[1], { fg = color, bold = true }) end
204+ end
205+ local dir = fg('Directory')
206+ if dir then vim.api.nvim_set_hl(0, 'StatusFile', { fg = dir }) end
207+ -- match the statusline background to the Normal background
208+ local bg = vim.api.nvim_get_hl(0, { name = 'Normal', link = false }).bg
209+ for _, g in ipairs({ 'StatusLine', 'StatusLineNC' }) do
210+ local hl = vim.api.nvim_get_hl(0, { name = g, link = false })
211+ hl.bg, hl.cterm, hl.ctermbg = bg, nil, nil
212+ vim.api.nvim_set_hl(0, g, hl)
213+ end
214+end
215+
216+apply_theme()
217+vim.api.nvim_create_autocmd('ColorScheme', { callback = apply_theme })
218+
219+local function git_info()
220+ local d = vim.b.gitsigns_status_dict
221+ if not (d and d.head) then return '' end
222+ local parts, counts = { ' ' .. d.head }, { d.added, d.changed, d.removed }
223+ for i, g in ipairs(git_groups) do
224+ if (counts[i] or 0) > 0 then
225+ parts[#parts + 1] = ('%%#%s#%s%d%%#StatusLine#'):format(g[1], g[2], counts[i])
226+ end
227+ end
228+ return table.concat(parts, ' ')
229+end
230+
231+local function statusline()
232+ local m = vim.api.nvim_get_mode().mode:sub(1, 1)
233+ if m == '\22' or m == 'V' or m == 's' or m == 'S' then m = 'v' end
234+ local mode = mode_groups[mode_keys[m] or 1][1]
235+ return table.concat({
236+ '%#StatusMode' .. mode .. '# ' .. mode .. ' ',
237+ '%#StatusLine# %f%m%=',
238+ git_info(),
239+ ' %#StatusFile#' .. (vim.bo.filetype ~= '' and vim.bo.filetype or 'text'),
240+ '%#StatusLine# %p%% ',
241+ })
242+end
243+
244+_G.Statusline = statusline
245+vim.o.statusline = '%!v:lua.Statusline()'