jbyuki/nabla.nvim

github github
note-taking plugin
star 164
stars
alert-circle 4
open issues
users 2
subscribers
git-branch 7
forks
CREATED

2020-12-07

UPDATED

25 days ago

packer

require('packer').startup(function()
  use 'jbyuki/nabla.nvim'
end)

paq

require "paq" { 
  'jbyuki/nabla.nvim'
}

nabla.nvim

Take your scentific notes in Neovim.

The colorscheme used here is tokyonight.

An ASCII math generator from LaTeX equations.

Requirements

  • Neovim nightly
  • A colorscheme which supports treesitter see here

Install

Using vim-plug

Plug 'jbyuki/nabla.nvim'

Configuration

Bind the following command:

nnoremap <F5> :lua require("nabla").action()<CR>
nnoremap <leader>p :lua require("nabla").popup()<CR> " Customize with popup({border = ...})  : `single` (default), `double`, `rounded`

Usage

  • Press F5 to initiate nabla.nvim.
  • Press F5 on a LaTeX formula to generate the ASCII Formula.
    • $ ... $ : inline form
    • $$ ... $$ : wrapped form
  • Press F5 on an ASCII Formula to edit the LaTeX formula.
  • Press leader + p to open floating menu

Reference

See test/input.txt for examples.

Note: If the notation you need is not present or there is a misaligned expression, feel free to open an Issue.

Credits

  • Thanks to jetrosut for his helpful feedback and bug troubleshoot
  • Thanks to nbCloud91 for pointing me to VIM conceals
  • Thanks to clstb for giving suggestions on how to enhance the interaction.
  • Thanks to aspeddro for adding preview popups.

Contribute

See here.