File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 93
93
94
94
#### [ luatex] ( https://www.luatex.org/ )
95
95
96
- See [ texluap] ( https://luarocks.org/modules/freed-wu/texluap ) .
97
-
98
- #### [ neomutt] ( https://neomutt.org )
99
-
100
- Broken in [ upstream] ( https://github.com/neomutt/neomutt/issues/4328 )
96
+ See [ texluap] ( https://texrocks.readthedocs.io/en/latest/topics/texluap.md.html ) .
101
97
102
98
### Lua 5.4
103
99
104
100
#### [ pandoc] ( https://pandoc.org )
105
101
106
102
![ pandocp] ( https://github.com/wakatime/prompt-style.lua/assets/32936898/b556effe-6be7-4cf9-b612-b1283d6de721 )
107
103
104
+ #### [ neomutt] ( https://neomutt.org )
105
+
106
+ ![ neomuttp] ( https://github.com/user-attachments/assets/987820e6-cdb4-4a2b-a190-5ab16c4449b7 )
107
+
108
108
## Install
109
109
110
110
### [ AUR] ( https://aur.archlinux.org/packages/lua-prompt-style )
Original file line number Diff line number Diff line change 1
1
--- prompt style.
2
2
local os = require " os"
3
3
local table = require " table"
4
- -- texlua has a builtin lfs, use it
5
- if lfs then
6
- lfs_ = lfs
7
- else
8
- _ , lfs_ = pcall (require , " lfs" )
9
- end
10
- local lfs = lfs_
4
+ local lfs = require " lfs"
11
5
local warna = require " warna"
12
6
warna .options .level = 3
13
7
local ansicolors = warna .format
@@ -248,9 +242,9 @@ local function generate_ps1(char, sections)
248
242
if text ~= " " then
249
243
text = format :format (text )
250
244
if last_bg == " " then
251
- ps1 = ps1 .. " %{" .. fg .. " " .. bg .. " bg }" .. text
245
+ ps1 = ps1 .. " %{" .. fg .. " bg- " .. bg .. " }" .. text
252
246
else
253
- ps1 = ps1 .. " %{" .. last_bg .. " " .. bg .. " bg }" .. sep ..
247
+ ps1 = ps1 .. " %{" .. last_bg .. " bg- " .. bg .. " }" .. sep ..
254
248
" %{" .. fg .. " }" .. text
255
249
end
256
250
last_bg = bg
You can’t perform that action at this time.
0 commit comments