Closed cxwx closed 2 days ago
@cxwx
复现不了
好像是啥其他插件出来的问题,我找找看,但是不使用fittencode就不会卡住
问题应该是发生在 lualine.nvim 的配置中
lualine_x = {
{
function()
local emoji = {"⏸️ ", "⌛️", "⚠️ ", "🚫", "✅"}
return "🅕 " .. emoji[require("fittencode").get_current_status()+1]
end,
cond = require("fittencode").has_suggestions,
color = { fg = "#37b0e7", bg = "#101945" },
},
},
这样能复现吗?
@cxwx
复现不了
问题应该是发生在 lualine.nvim 的配置中
lualine_x = { { function() local emoji = {"⏸️ ", "⌛️", "⚠️ ", "🚫", "✅"} return "🅕 " .. emoji[require("fittencode").get_current_status()+1] end, cond = require("fittencode").has_suggestions, color = { fg = "#37b0e7", bg = "#101945" }, }, },
这样能复现吗?
@cxwx
复现不了
有可能是这个原因,不过我现在没电脑测试。
您看下 readme说明,最近状态值改了,新增了disabled。
local StatusCodes = { DISABLED = 1, IDLE = 2, GENERATING = 3, ERROR = 4, NO_MORE_SUGGESTIONS = 5, SUGGESTIONS_READY = 6, }
貌似是这里的问题。
卡住之前
ctrl+c
之后