Skip to content

Commit 3c3b56f

Browse files
authored
implement #57, #63
feat: Support executables launched using `toggleterm.nvim`
2 parents 01f7bfc + 4119ef4 commit 3c3b56f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lua/cord.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,13 @@ local function update_presence(config)
201201
and (current_presence.cursor_line .. ':' .. current_presence.cursor_col)
202202
or nil
203203

204+
if current_presence.type == 'toggleterm' then
205+
local type = current_presence.name:match ':(.-);#toggleterm'
206+
207+
current_presence.name = type or current_presence.name
208+
current_presence.type = type or current_presence.type
209+
end
210+
204211
local icon, name =
205212
utils.get_icon(config, current_presence.name, current_presence.type)
206213

0 commit comments

Comments
 (0)