File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,24 @@ REPLs. This project provides some wrapper scripts to use this plugin for them:
5353
5454![ nvimp] ( https://github.com/wakatime/prompt-style.lua/assets/32936898/8d0b4863-15c6-4966-b8af-219c9c40c1ae )
5555
56+ Tips: you can skip loading unnecessary plugins in your vimrc by:
57+
58+ ``` vim
59+ let s:l_flag = 0
60+ for arg in v:argv
61+ if s:l_flag == 1
62+ let g:script_name = fnamemodify(arg, ':t')
63+ break
64+ endif
65+ if arg ==# '-l'
66+ let s:l_flag = 1
67+ endif
68+ endfor
69+ if get(g:, 'script_name', '') ==# 'nvimp'
70+ finish
71+ endif
72+ ```
73+
5674![ texluap] ( https://github.com/wakatime/prompt-style.lua/assets/32936898/96d9f4c1-55fc-4ae3-87b8-7afd29f4ba0e )
5775
5876![ pandocp] ( https://github.com/wakatime/prompt-style.lua/assets/32936898/b556effe-6be7-4cf9-b612-b1283d6de721 )
Original file line number Diff line number Diff line change 1- #!/usr/bin/env -S nvim --headless --cmd "let g:repl = 'nvimp'" - l
1+ #!/usr/bin/env -S nvim --headless -l
22local string = require "string"
33local package = require "package"
44local version = string.gsub(_VERSION, ".* ", "")
You can’t perform that action at this time.
0 commit comments