Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kdheepak/cmp-latex-symbols
Add latex symbol support for nvim-cmp.
https://github.com/kdheepak/cmp-latex-symbols
neovim nvim-cmp
Last synced: 2 months ago
JSON representation
Add latex symbol support for nvim-cmp.
- Host: GitHub
- URL: https://github.com/kdheepak/cmp-latex-symbols
- Owner: kdheepak
- License: mit
- Created: 2021-08-18T22:23:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-23T13:15:58.000Z (almost 2 years ago)
- Last Synced: 2024-10-31T17:38:29.878Z (2 months ago)
- Topics: neovim, nvim-cmp
- Language: Lua
- Homepage:
- Size: 190 KB
- Stars: 133
- Watchers: 4
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cmp-latex-symbols
Add latex symbol support for [nvim-cmp](https://github.com/hrsh7th/nvim-cmp).
![cmp-latex-symbols mov](https://user-images.githubusercontent.com/1813121/130020846-83996c11-b8a6-42a1-ac84-4b16af88a3cb.gif)
## Install
Using Packer:
```lua
use({
"hrsh7th/nvim-cmp",
requires = {
{ "kdheepak/cmp-latex-symbols" },
},
sources = {
{
name = "latex_symbols",
option = {
strategy = 0, -- mixed
},
},
},
})
```## Options
### `strategy`
Set the display strategy.
Type: number
Default: `0 -- mixed`
Possible values:- `0 -- mixed` Show the command and insert the symbol
- `1 -- julia` Show and insert the symbol
- `2 -- latex` Show and insert the commandOriginal based on [compe-latex-symbols](https://github.com/GoldsteinE/compe-latex-symbols/).
Currently uses [`unimathsymbols.txt`](http://milde.users.sourceforge.net/LUCR/Math/data/unimathsymbols.txt) and LaTeX symbols defined by the Julia REPL.
For emoji's, use [this source](https://github.com/hrsh7th/cmp-emoji).[See @ExpandingMan's repo](https://gitlab.com/ExpandingMan/cmp-latex/) for a source with all and only the latex and emoji symbols defined by the Julia REPL.