Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/jbyuki/nabla.nvim

take your scientific notes :pencil2: in Neovim
https://github.com/jbyuki/nabla.nvim

ascii-art latex neovim nvim scientific-notes

Last synced: about 2 months ago
JSON representation

take your scientific notes :pencil2: in Neovim

Lists

README

        

nabla.nvim
-----------

Take your scentific notes in Neovim.



The colorscheme used here is [tokyonight](https://github.com/folke/tokyonight.nvim).

An ASCII math generator from LaTeX equations.

Requirements
------------

* Neovim nightly
* A colorscheme which supports treesitter [see here](https://github.com/rockerBOO/awesome-neovim#tree-sitter-supported-colorscheme)
* Tree-sitter : [nvim-treesitter/nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
* Latex parser : Install with `TSInstall latex`.

Install
-------

Using vim-plug

```vim
Plug 'jbyuki/nabla.nvim'
```

Using packer.nvim

```vim
use 'jbyuki/nabla.nvim'
```

Using the built-in package manager

* Create a folder `pack//start`
* Inside the `start` folder `git clone` nabla.nvim
* `git clone https://github.com/jbyuki/nabla.nvim`
* In your init.lua, add the pack folder to packpath (see `:help packpath`)
```lua
vim.o.packpath = vim.o.packpath .. ","
```

* `git pull` in the plugin folder to update it. You want something more viable
though, that's why package managers are useful.

Configuration
-------------

Bind the following command:

```vim
nnoremap p :lua require("nabla").popup() " Customize with popup({border = ...}) : `single` (default), `double`, `rounded`
```

See [here](https://github.com/jbyuki/nabla.nvim/issues/35) for virt_lines support.

Usage
-----

* Press leader + p while the cursor is on a math expression to open floating menu

Reference
---------

See [test/input.txt](https://github.com/jbyuki/nabla.nvim/blob/master/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](https://github.com/jbyuki/nabla.nvim/issues).

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.
* Thanks to Areustle for adding more than 500 new symbols.
* Thanks to kkharji for pointing out virt_lines.
* Thanks to max397574 for a proper treesitter implementation.

Contribute
----------

See [here](https://github.com/jbyuki/ntangle.nvim/wiki/How-to-use-ntangle.nvim).