diff options
Diffstat (limited to '.config/nvim/plugin/40-colors.lua')
| -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" |
