fix automap

This commit is contained in:
fiplox 2023-01-01 17:08:01 +01:00
parent 15ddd0218b
commit 7d79548f48
1 changed files with 6 additions and 6 deletions

View File

@ -86,10 +86,10 @@ function UnMapDHM()
vim.api.nvim_del_keymap('n', 'N')
end
-- local handle = io.popen 'lsusb | grep -c Sofle'
-- local automap = handle:read '*n'
-- handle:close()
local handle = io.popen 'lsusb | grep -c Sofle'
local automap = handle:read '*n'
handle:close()
-- if os.getenv("SSH_TTY") then
MapDHM()
-- end
if automap or os.getenv("SSH_TTY") then
MapDHM()
end