Skip to content

Commit

Permalink
fix: correct the toggleterm lua pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
vyfor authored Aug 19, 2024
1 parent 6130cdb commit 6e1e62a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/cord.lua
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ local function update_presence(config)

if current_presence.type == 'toggleterm' then
local type = current_presence.name:match ':?%s-([^:]-)%s-&?::toggleterm'
or current_presence.name:match ':?%s-([^:]-)%s-&?#;toggleterm'
or current_presence.name:match ':?%s-([^:]-)%s-&?;#toggleterm'

if type ~= nil and type ~= '' then
current_presence.name = type
Expand Down

0 comments on commit 6e1e62a

Please sign in to comment.