nabla.nvim
nabla.nvim copied to clipboard
Autocommand to auto open popup in normal mode when hovering over math block
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 :)
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.