Skip to content

Commit

Permalink
🔥 Remove g:repl
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Nov 27, 2024
1 parent d607c31 commit 5599ed4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,24 @@ REPLs. This project provides some wrapper scripts to use this plugin for them:

![nvimp](https://github.com/wakatime/prompt-style.lua/assets/32936898/8d0b4863-15c6-4966-b8af-219c9c40c1ae)

Tips: you can skip loading unnecessary plugins in your vimrc by:

```vim
let s:l_flag = 0
for arg in v:argv
if s:l_flag == 1
let g:script_name = fnamemodify(arg, ':t')
break
endif
if arg ==# '-l'
let s:l_flag = 1
endif
endfor
if get(g:, 'script_name', '') ==# 'nvimp'
finish
endif
```

![texluap](https://github.com/wakatime/prompt-style.lua/assets/32936898/96d9f4c1-55fc-4ae3-87b8-7afd29f4ba0e)

![pandocp](https://github.com/wakatime/prompt-style.lua/assets/32936898/b556effe-6be7-4cf9-b612-b1283d6de721)
Expand Down
2 changes: 1 addition & 1 deletion bin/nvimp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S nvim --headless --cmd "let g:repl = 'nvimp'" -l
#!/usr/bin/env -S nvim --headless -l
local string = require "string"
local package = require "package"
local version = string.gsub(_VERSION, ".* ", "")
Expand Down

0 comments on commit 5599ed4

Please sign in to comment.