Skip to content

Speed/max startup#16

Open
vinitkumar wants to merge 6 commits into
mainfrom
speed/max-startup
Open

Speed/max startup#16
vinitkumar wants to merge 6 commits into
mainfrom
speed/max-startup

Conversation

@vinitkumar

Copy link
Copy Markdown
Owner

No description provided.

vinitkumar and others added 6 commits May 6, 2026 23:43
Startup time
- 64ms -> 22.5ms (~65% faster) measured with --startuptime
- Lanciabones colorscheme application (13.5ms) is now off the startup
  critical path: deferred to UIEnter via vim.api.nvim_create_autocmd.
  The plugin still loads eagerly (priority=1000) so there is no flash;
  only the ':colorscheme' command is deferred.

autocmds.lua
- Dropped redundant filetype-setting autocmds for *.md, *.yaml, *.yml.
  Neovim auto-detects these by extension; we only need the indent /
  filetype-specific tweaks.
- Folded yaml indent into the main 2-space FileType handler instead of
  a separate FileType yaml block.
- Added typescript.tsx to the 2-space FileType pattern list so the
  forced *.tsx -> typescript.tsx mapping inherits the right indent.
- Wrapped the colorscheme command in pcall so a missing theme can't
  break startup.

options.lua
- Consolidated listchars and fillchars into single canonical tables;
  previously they were set then appended to a few lines later.
- Dedup'd shortmess flags ('AIIOTWacot' had 'I' twice).
- Reorganised into UI / indent / search / editing / persistence /
  splits / folds / completion / quiet sections so future tweaks have
  one obvious home.

Housekeeping
- Added .gitignore for *.backup.* and .DS_Store so timestamped local
  rescue copies stop polluting 'git status'.

Amp-Thread-ID: https://ampcode.com/threads/T-019e0104-1794-705d-b6dd-50584aaad1e8
Co-authored-by: Amp <amp@ampcode.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant