Skip to content
Discussion options

You must be logged in to vote
for ws, key in pairs(wsKeys) do
      hl.bind(mod(key), function()
        return hl.dsp.focus({ workspace = wsId(ws) })
      end)
      hl.bind(modShift(key), function()
        return hl.dsp.window.move({ workspace = wsId(ws) })
      end)
    end

hl.dsp. functions return an object, they don't invoke any operation. What you are essentially doing is attaching a lua fn which does nothing, to a keybind.

I think you simply want hl.dispatch() instead of return.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@LoricAndre
Comment options

Comment options

You must be logged in to vote
3 replies
@LoricAndre
Comment options

@vaxerski
Comment options

@LoricAndre
Comment options

Answer selected by LoricAndre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants