commit 69e02a0e929b003411c8bdc86c073d2aef2cc096 from: amb date: Mon Aug 17 00:16:10 2026 UTC handling colors is too tiresome, just inherit from the terminal commit - a337380cb8693fd87a48fc49713148ed85f4e1da commit + 69e02a0e929b003411c8bdc86c073d2aef2cc096 blob - a988f982ae4391092e6583aff4f33a6473a5c208 blob + 55d64c1a1764bcdb56072d3a00db03f19911a24e --- lua/colors.lua +++ lua/colors.lua @@ -1,57 +1,10 @@ -_G.apply_theme = function(mode) - vim.opt.termguicolors = true - vim.cmd('syntax off') +vim.opt.termguicolors = false +vim.cmd('syntax off') - local c = {} - if mode == "light" then - c = { - bg = "#f4f3ec", - fg = "#454545", - visual = "#e0ddd0", - match = "#6b7d9c", - search_bg = "#c2a872", - search_fg = "#454545", - inc_search = "#ab925e" - } - else - c = { - bg = "#2a2927", - fg = "#beb8ad", - visual = "#4a4743", - match = "#6f6a63", - search_bg = "#8a7f6a", - search_fg = "#1f1e1c", - inc_search = "#c2a86b" - } - end +-- match pairs still have style +vim.api.nvim_set_hl(0, "MatchParen", {}) - vim.api.nvim_set_hl(0, "Normal", { fg = c.fg, bg = c.bg }) - vim.api.nvim_set_hl(0, "TelescopeMatching", { fg = c.match }) - vim.api.nvim_set_hl(0, "Visual", { bg = c.visual }) - vim.api.nvim_set_hl(0, "Comment", { fg = c.fg }) - - vim.api.nvim_set_hl(0, "Search", { fg = c.search_fg, bg = c.search_bg }) - vim.api.nvim_set_hl(0, "IncSearch", { fg = c.search_fg, bg = c.inc_search }) - vim.api.nvim_set_hl(0, "CurSearch", { fg = c.search_fg, bg = c.inc_search }) - - local groups = { - "Constant", "Identifier", "Statement", "PreProc", "Type", "Special", - "String", "Character", "Number", "Boolean", "Float", "Function", - "Conditional", "Repeat", "Label", "Operator", "Keyword", "Exception", - "Include", "Define", "Macro", "PreCondit", "StorageClass", "Structure", - "Typedef", "Delimiter", "Underlined", "Error", "Todo", "netrwDir", "@variable", - "GitSignsAdd", "GitSignsChange", "GitSignsDelete", "GitSignsStagedAdd", - "GitSignsStagedChange", "GitSignsStagedDelete" - } - - for _, group in ipairs(groups) do - vim.api.nvim_set_hl(0, group, { link = "Normal" }) - end -end - -apply_theme("dark") - - -- disable some mistical built-in treesitter that ignores syntax off +-- disable some mistical built-in treesitter that ignores syntax off vim.api.nvim_create_autocmd("FileType", { pattern = "*", callback = function(a) blob - bd41967a633b3608260dbc74e559fd780d3aa253 blob + 0d284246bf5eb2418e350f69d54a293bc6ec8dee --- plugin/telescope.lua +++ plugin/telescope.lua @@ -25,8 +25,8 @@ require('telescope').setup{ pickers = { find_files = { layout_config = { - height = 0.4, - width = 0.4, + height = 0.6, + width = 0.6, prompt_position = 'top', }, previewer = false,