mirror of
https://oauth2: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@github.com/m1ngsama/chopsticks.git
synced 2026-05-10 19:10:59 +08:00
- Guard against double-sourcing when exrc loads CWD .vimrc (saves ~8ms) - Lazy-load EasyMotion, undotree, previm, goyo, limelight (on-demand) - Lazy-load language syntax plugins (for: filetype) - Enable lsp_settings_lazyload (defer server init to VimEnter) - Skip unused built-in plugins (2html, gzip, tar, zip, vimball, etc.) - Remove redundant filetype/syntax calls (plug#end already enables them) - Add shortmess+=I to skip intro screen
21 lines
518 B
VimL
21 lines
518 B
VimL
if exists('g:chopsticks_loaded') | finish | endif
|
|
let g:chopsticks_loaded = 1
|
|
|
|
let g:chopsticks_dir = fnamemodify(resolve(expand('<sfile>')), ':h')
|
|
|
|
function! s:load(mod) abort
|
|
execute 'source ' . g:chopsticks_dir . '/modules/' . a:mod . '.vim'
|
|
endfunction
|
|
|
|
call s:load('env')
|
|
call s:load('plugins')
|
|
call s:load('core')
|
|
call s:load('ui')
|
|
call s:load('editing')
|
|
call s:load('navigation')
|
|
call s:load('lsp')
|
|
call s:load('lint')
|
|
call s:load('git')
|
|
call s:load('writing')
|
|
call s:load('languages')
|
|
call s:load('tools')
|