Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Commit 50cbff1

Browse files
committed
fix color
1 parent 1934657 commit 50cbff1

File tree

3 files changed

+49
-5
lines changed

3 files changed

+49
-5
lines changed

lazy-lock.json

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"nui-components.nvim": { "branch": "main", "commit": "caecfe2089e5ffbe99c2b0e0468da91990263a90" },
5151
"nui.nvim": { "branch": "main", "commit": "b1b3dcd6ed8f355c78bad3d395ff645be5f8b6ae" },
5252
"numb.nvim": { "branch": "master", "commit": "3f7d4a74bd456e747a1278ea1672b26116e0824d" },
53+
"nvim-chainsaw": { "branch": "main", "commit": "7765c121c709f0eef2badb06a26cf299d0f4b7be" },
5354
"nvim-colorizer.lua": { "branch": "master", "commit": "85855b38011114929f4058efc97af1059ab3e41d" },
5455
"nvim-dap": { "branch": "master", "commit": "5a2f7121869394502521c52b2bc581ab22c69447" },
5556
"nvim-dap-ui": { "branch": "master", "commit": "334cf3038c4756e6ab999cbac67c847fb654c190" },

lua/user/plugins/debugger.lua

+43
Original file line numberDiff line numberDiff line change
@@ -612,3 +612,46 @@ pack.plug({
612612
end)
613613
end),
614614
})
615+
616+
pack.plug({
617+
'chrisgrieser/nvim-chainsaw',
618+
opts = {
619+
-- The marker should be a unique string, since `.removeLogs()` will remove
620+
-- any line with it. Emojis or strings like "[Chainsaw]" are recommended.
621+
marker = '🪚',
622+
623+
-- emojis used for `.beepLog()`
624+
beepEmojis = { '🔵', '🟩', '', '', '💜', '🔲' },
625+
logStatements = {
626+
beepLog = {
627+
vue = 'console.log("%s beep %s");',
628+
},
629+
messageLog = {
630+
vue = 'console.log("%s ");',
631+
},
632+
},
633+
},
634+
keys = {
635+
{
636+
'<leader>rK',
637+
'<cmd>lua require("chainsaw").removeLogs()<cr>',
638+
desc = 'Remove all logs',
639+
},
640+
{
641+
'<leader>rMM',
642+
'<cmd>lua require("chainsaw").messageLog()<cr>',
643+
desc = 'Add message log',
644+
},
645+
{
646+
'<leader>rMS',
647+
'<cmd>lua require("chainsaw").stacktraceLog()<cr>',
648+
desc = 'Add stacktrace log',
649+
vim.notify('🪚 beep 🟩'),
650+
},
651+
{
652+
'<leader>rMB',
653+
'<cmd>lua require("chainsaw").beepLog()<cr>',
654+
desc = 'Add quick beep log',
655+
},
656+
},
657+
})

lua/userlib/statusline/heirline/components.lua

+5-5
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ local ViMode = {
179179
},
180180
{
181181
hl = function(self)
182-
return { bg = self:mode_color(), fg = 'gray', bold = true }
182+
return { bg = self:mode_color(), fg = 'white', bold = true }
183183
end,
184184
{
185185
provider = ' ',
@@ -426,10 +426,10 @@ local function setup_colors()
426426
visual = utils.get_highlight('Visual').bg or 'none',
427427
diag_warn = utils.get_highlight('DiagnosticWarn').fg or 'none',
428428
diag_error = utils.get_highlight('DiagnosticError').fg or 'none',
429-
mode_n = utils.get_highlight('Function').fg or 'none',
430-
mode_i = utils.get_highlight('Keyword').fg or 'none',
431-
mode_v = utils.get_highlight('Visual').fg or 'none',
432-
mode_c = utils.get_highlight('Label').fg or 'none',
429+
mode_n = utils.get_highlight('Search').bg or 'none',
430+
mode_i = utils.get_highlight('CursorLine').bg or 'none',
431+
mode_v = utils.get_highlight('Visual').bg or 'none',
432+
mode_c = utils.get_highlight('Cursor').bg or 'none',
433433
mode_x = utils.get_highlight('Statement').fg or 'none',
434434
mode_t = utils.get_highlight('NonText').fg or 'none',
435435
}

0 commit comments

Comments
 (0)