843d1ca3a1
Signed-off-by: Timothy Pidashev <mail@timmypidashev.dev>
3.4 KiB
3.4 KiB
TODO
Barbar sidebar offset + alignment still broken
Symptoms:
- Oil sidebar label shows literal
Files(static), not the expected fish-shortened cwd (~/P/t/neovimrc). - Sidebar width does not shrink to fit longest entry — stays at default ~35 cols even when the longest filename is much shorter.
- Bar colors (
BufferCurrent*,BufferOffset) visibly mismatch after darkbox edits and restart.
Context:
lua/timmypidashev/plugins/oil.luahasfish_cwd()andfit_width()helpers wired tobufferline.api.set_offset(width, text). Expected to be called onBufWinEnter/BufReadPost/TextChangedfor oil buffers, plus retry loopmaybe_fit()polling for buffer populate.lua/timmypidashev/plugins/barbar.luasetssidebar_filetypes.oil+exclude_ft = { "oil" }.- Darkbox
BufferOffsetwas updated tofg = foreground, bold = trueto matchBufferCurrent; separator glyph changed from▎to│.
Hypotheses to verify:
task devwas not run, so the copied~/.config/nvim/lua/…lacks the rtp prepend + oil changes. Check::lua =vim.api.nvim_get_runtime_file("colors/darkbox.lua", true)[1]must show~/Projects/timmypidashev/darkbox.nvim/….- Leftover pack clone of darkbox is winning over local rtp:
~/.local/share/nvim/site/pack/core/opt/darkbox.nvimmay need removal. fit_width/maybe_fitnever fire because the autocmd's buffer filter or pattern isn't matching oil buffers as expected.bufferline.api.set_offsettext arg is silently ignored orapimodule name differs across barbar versions.
Next steps:
- Instrument with
vim.notifyinsidemaybe_fit,fit_width, andset_offsetto confirm they run and with what values. - Try
require("barbar").apivsrequire("bufferline.api")— the module path has changed between barbar releases. - Consider dropping barbar's offset mechanism and rendering the label inline at the top of the oil buffer using extmarks instead.
Opening markdown files has ~2s blank / freeze
Symptoms:
- Opening
README.md(and likely other markdown files) shows a blank buffer for ~2 seconds before content/syntax renders.
Likely causes (to investigate in order):
- marksman LSP spawning and blocking initial render. Check
:LspLogtimestamps on attach. - markdownlint-cli2 lint run on
BufReadPostvianvim-lint—lua/timmypidashev/plugins/lint.luatriggerstry_lintonBufReadPost. This can shell out synchronously if misconfigured. - Treesitter
markdown+markdown_inlineparsing both on the same buffer — ourFileTypeautocmd starts treesitter; main branch install is async, but re-parse on large markdown can be slow first time. - conform.nvim format_on_save preload of
prettierdbinary (less likely on read, but worth eliminating). - blink.cmp Lua fuzzy impl cold-startup (we disabled rust fallback).
Diagnostic steps:
:lua vim.lsp.set_log_level("debug")then:LspLogafter opening the file.- Compare times:
nvim --clean README.mdvs current config. - Disable plugins one-by-one (
marksman,nvim-lint, treesitter) to isolate. :Profile(via:h profile) around:e README.md.
Likely fix candidates:
- Switch
nvim-linttrigger fromBufReadPosttoBufWritePostonly. - Detach marksman if no
.marksman.toml/.gitroot — or remove it from the enabled LSP list entirely if unused. - Debounce treesitter highlight start for markdown.