Skip to content

Commit 30205d8

Browse files
committed
Update nvim/init.lua to highlight current line
1 parent 31bc0a5 commit 30205d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nvim/.config/nvim/init.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,11 @@ require("lazy").setup({
298298
})
299299
vim.o.background = "dark"
300300
vim.cmd([[colorscheme gruber-darker]])
301-
-- Set space visualization colors using Gruber Dark palette
302301
vim.api.nvim_set_hl(0, "Whitespace", { fg = "#2a2a2a", blend = 95 }) -- Extremely subtle for normal spaces
303302
vim.api.nvim_set_hl(0, "TrailingWhitespace", { bg = "#f43841" }) -- Red background for trailing spaces
303+
-- Enable cursorline for CursorLineNr highlighting to work
304+
vim.opt.cursorline = true
305+
vim.api.nvim_set_hl(0, "CursorLineNr", { fg = "#ffdd33" }) -- Yellow for current line number
304306
end,
305307
},
306308
-- previously I was using this but let's try now with gruber-hard instead

0 commit comments

Comments
 (0)