summaryrefslogtreecommitdiffstats
path: root/init.lua
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-05-19 12:00:21 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-05-19 15:06:47 +0200
commit2f035b58d45ca5d34522a3945073739e66f5c297 (patch)
treea9ddd26bcc024de707dd9cb77410abe20c1e145a /init.lua
parent0fe3b9ea814e195358b6a92b1881d513be9eb4e6 (diff)
downloadnvim-config-2f035b58d45ca5d34522a3945073739e66f5c297.tar.gz
nvim-config-2f035b58d45ca5d34522a3945073739e66f5c297.zip
feat(nvim): focus-aware cursor line via per-window highlight namespaces
Split 50-highlight.lua into 40-colors.lua (colorscheme, custom highlights, per-window namespaces, focus tracking) and 50-extmarks.lua (TODO scanner reading the namespace contract from vim.g.dotfiles). The 40- prefix guarantees colors load before extmarks. Focused vs unfocused windows now differ by cursor-line color and a CursorLineNr badge in the focus hue (green on dark, magenta on light); the number column stays visible on closed folds where CursorLine cannot.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 49057b9..e78cb27 100644
--- a/init.lua
+++ b/init.lua
@@ -151,6 +151,7 @@ vim.opt.scrolloff = 2 -- Keep this many screen lines above/below the cursor
vim.opt.ignorecase = true -- Search ignores case by default
vim.opt.smartcase = true -- Search is case-sensitive if searching for uppercase characters
vim.opt.conceallevel = 2 -- Hide text with the "conceal" syntax attribute
+vim.opt.showtabline = 2 -- Always show tabline
vim.opt.list = true -- Display <Tab> and other non-printables
vim.opt.listchars = { -- Characters used by 'list'
tab = "> ", -- Tab