Speed/max startup#16
Open
vinitkumar wants to merge 6 commits into
Open
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.