fix automap
This commit is contained in:
parent
15ddd0218b
commit
7d79548f48
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user