1
0
mirror of https://github.com/jiriks74/presence.nvim synced 2024-11-23 20:37:50 +01:00

Fix Microsoft kernel detection for WSL 2 (#64)

This commit is contained in:
Bas van den Wollenberg 2022-06-22 21:36:58 +02:00 committed by GitHub
parent ebdf23b9b1
commit 615d4cb8b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -84,7 +84,7 @@ function Presence:setup(options)
local os_name = self.get_os_name(uname) local os_name = self.get_os_name(uname)
self.os = { self.os = {
name = os_name, name = os_name,
is_wsl = uname.release:find("Microsoft") ~= nil, is_wsl = uname.release:lower():find("microsoft") ~= nil,
path_separator = separator, path_separator = separator,
} }