diff --git a/lua/config/mappings.lua b/lua/config/mappings.lua index 98a10c9..d39aee6 100644 --- a/lua/config/mappings.lua +++ b/lua/config/mappings.lua @@ -94,6 +94,9 @@ if os.getenv 'SSH_TTY' then MapDHM() else local handle = io.popen 'lsusb | grep -c Sofle' + if handle == nil then + return + end local automap = handle:read '*n' handle:close() if automap == 1 then