aboutsummaryrefslogtreecommitdiffstats
path: root/nvim/lua/plugins/nabla.lua
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2023-09-01 09:35:21 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2023-09-01 09:35:21 -0400
commitcab1725d932efa26befa8dbcc74b6cda2d59a4aa (patch)
tree92a1d51e649a08a18dd714a31b863b4b16d15973 /nvim/lua/plugins/nabla.lua
parent7f95b2d529c9d2a8f2e4bb7c18756dfca7bb8d61 (diff)
added tex equation preview via nabla
Diffstat (limited to 'nvim/lua/plugins/nabla.lua')
-rw-r--r--nvim/lua/plugins/nabla.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/nvim/lua/plugins/nabla.lua b/nvim/lua/plugins/nabla.lua
new file mode 100644
index 0000000..f2f5d89
--- /dev/null
+++ b/nvim/lua/plugins/nabla.lua
@@ -0,0 +1,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"
+ }
+ }
+}