aboutsummaryrefslogtreecommitdiffstats
path: root/nvim/lua/plugins/nabla.lua
blob: f2f5d898c9d6493d9acbb2f68ea9b73fb97cf445 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
return {
    'jbyuki/nabla.nvim',
    dependencies = {
         'nvim-treesitter/nvim-treesitter'
    },
    ft = {'markdown', 'pandoc', 'rmd'},
    keys = {
        { "<Leader>=p", function()
            require('nabla').popup()
        end,
        desc = "Popup Nabla equation preview"
        },
        { "<Leader>==", function()
            require('nabla').toggle_virt()
        end,
        desc = "Toggle Nabla equation preview for the entire buffer"
        }
    }
}