add comments

This commit is contained in:
2025-09-26 01:10:59 +00:00
parent 14eac65897
commit f87edeefac
3 changed files with 34 additions and 16 deletions

View File

@@ -29,16 +29,18 @@ end, { desc = "Reload the current colorscheme" })
----------------------------------------------
-- Command `:TSHighlightRoots` (works but uncomment only when used)
-- Description:
-- Collects all Tree-sitter highlight groups, resolves their links,
-- and outputs the unique root groups actually used (for theming/debugging).
--
-- Usage:
-- :TSHighlightRoots → prints roots in the command line
-- :TSHighlightRoots <filename> → writes roots into <filename> (overwrites)
-- (filename supports `~` and tab-completion)
--
--[[
Command :TSHighlightRoots (works but uncomment only when used)
Description:
Collects all Tree-sitter highlight groups, resolves their links,
and outputs the unique root groups actually used (for theming/debugging).
Usage:
:TSHighlightRoots -> prints roots in the command line
:TSHighlightRoots <filename> -> writes roots into <filename> (overwrites)
(filename supports ~ and tab-completion)
]]
-- local function resolve_link(name)
-- local seen = {}
-- while name and not seen[name] do
@@ -88,7 +90,6 @@ end, { desc = "Reload the current colorscheme" })
-- end,
-- })
----------------------------------------------
----------------------------------------------
-- Useful tricks that do not fully work
----------------------------------------------

View File

@@ -40,8 +40,7 @@ vim.opt.mouse = "a"
-- Full path on status line
vim.opt.statusline = "%= %F%m%r%h%w ─ (%l,%c %P) %="
vim.opt.fillchars:append({ stl = '', stlnc = '' })
vim.opt.fillchars:append({ stl = "", stlnc = "" })
-- Sync clipboard between OS and Neovim
vim.schedule(function()