We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1c5475 commit c4041aeCopy full SHA for c4041ae
lua/presence/init.lua
@@ -758,6 +758,12 @@ end
758
759
-- Update Rich Presence for the provided vim buffer
760
function Presence:update_for_buffer(buffer, should_debounce)
761
+
762
+ -- Since git always uses forward slashes, replace with backslash in Windows
763
+ if self.os.name == "windows" then
764
+ buffer = buffer:gsub("/", [[\]])
765
+ end
766
767
-- Avoid unnecessary updates if the previous activity was for the current buffer
768
-- (allow same-buffer updates when line numbers are enabled)
769
if self.options.enable_line_number == 0 and self.last_activity.file == buffer then
0 commit comments