mirror of https://github.com/Hilbis/Hilbish
refactor: remove mode from prompt func in default conf and dont refresh in vim mode
parent
0113a4e0b4
commit
c5dd05bb1e
|
@ -3,7 +3,7 @@ local lunacolors = require 'lunacolors'
|
||||||
local bait = require 'bait'
|
local bait = require 'bait'
|
||||||
local ansikit = require 'ansikit'
|
local ansikit = require 'ansikit'
|
||||||
|
|
||||||
local function doPrompt(fail, mode)
|
local function doPrompt(fail)
|
||||||
hilbish.prompt(lunacolors.format(
|
hilbish.prompt(lunacolors.format(
|
||||||
'{blue}%u {cyan}%d ' .. (fail and '{red}' or '{green}') .. '∆ '
|
'{blue}%u {cyan}%d ' .. (fail and '{red}' or '{green}') .. '∆ '
|
||||||
))
|
))
|
||||||
|
@ -23,6 +23,4 @@ bait.catch('hilbish.vimMode', function(mode)
|
||||||
else
|
else
|
||||||
ansikit.cursorStyle(ansikit.lineCursor)
|
ansikit.cursorStyle(ansikit.lineCursor)
|
||||||
end
|
end
|
||||||
|
|
||||||
doPrompt(false, mode)
|
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue