mirror of
https://github.com/jiriks74/presence.nvim
synced 2024-11-23 12:27:50 +01:00
Fix Microsoft kernel detection for WSL 2 (#64)
This commit is contained in:
parent
ebdf23b9b1
commit
615d4cb8b0
@ -84,7 +84,7 @@ function Presence:setup(options)
|
||||
local os_name = self.get_os_name(uname)
|
||||
self.os = {
|
||||
name = os_name,
|
||||
is_wsl = uname.release:find("Microsoft") ~= nil,
|
||||
is_wsl = uname.release:lower():find("microsoft") ~= nil,
|
||||
path_separator = separator,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user