diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-07 19:53:32 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-07 19:53:32 +0200 |
| commit | 4d430526485fae3574d920c215ded93dcd936f69 (patch) | |
| tree | 1aed4a5949f402e5590a84b738127b05c269f1c6 /.config/nvim/plugin | |
| parent | a593c25d65b8806a31f0da994baddd35a8af5d44 (diff) | |
| download | dotfiles-4d430526485fae3574d920c215ded93dcd936f69.tar.gz dotfiles-4d430526485fae3574d920c215ded93dcd936f69.zip | |
docs(nvim): comment
Diffstat (limited to '.config/nvim/plugin')
| -rw-r--r-- | .config/nvim/plugin/40-colors.lua | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/.config/nvim/plugin/40-colors.lua b/.config/nvim/plugin/40-colors.lua index ee6ef3f..df2e48c 100644 --- a/.config/nvim/plugin/40-colors.lua +++ b/.config/nvim/plugin/40-colors.lua @@ -87,18 +87,14 @@ local function apply_highlights() set_cursorline_hl() end --- Single owner of every window's highlight namespace: the focused window gets --- `ns_active`, all others `ns_inactive`. Reapplied to every window on each --- focus change because WinLeave alone misses windows that existed at startup --- or were restored from a session. local function is_normal_win(win) return vim.api.nvim_win_is_valid(win) and vim.api.nvim_win_get_config(win).relative == "" end local function update_focus_ns() local cur = vim.api.nvim_get_current_win() - -- Focus in a floating window (completion, hover, ...) must not recolor the - -- split underneath; leave every window as it is. + -- Focus in a floating window (completion, hover, ...) must not recolor the split underneath; leave every window as + -- it is. if not is_normal_win(cur) then return end @@ -109,12 +105,6 @@ local function update_focus_ns() end end --- Note: a closed fold's screen line is always drawn with `Folded` (see --- `:help fold.txt` / hl-Folded); Neovim has no per-line override, so the --- unfocused cursor line is not visible when it sits on a closed fold. This is --- standard behavior (cursorline never renders on closed folds in any window) --- and is accepted as-is. - local function next_colorscheme() local colorschemes = vim.fn.getcompletion("", "color") vim.g.colors_name = vim.g.colors_name or "default" |
