nabla.nvim icon indicating copy to clipboard operation
nabla.nvim copied to clipboard

Autocommand to auto open popup in normal mode when hovering over math block

Open AndOrangutan opened this issue 3 years ago • 1 comments

I was wondering if anyone has come up with an autocommand that opens the popup if you hover the cursor over a math block? I am currently looking into it, but I honestly still really struggle with autocommands so I figured I would check here. Many thanks :)

AndOrangutan avatar Jan 24 '22 22:01 AndOrangutan

Okay, so I was playing for a bit and so far this is what I have:

vim.cmd[[au CursorHold *.md,*.markdown silent! lua require('nabla').popup({ border = 'rounded' })]]

Ideally, I would have a way to search for math block only, but this currently does what I want. I am going to leave this open a bit longer in case someone who knows how to do it properly sees it.

AndOrangutan avatar Jan 24 '22 23:01 AndOrangutan