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: over 1 year 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 (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-10T16:52:40.000Z (over 1 year ago)
- Last Synced: 2025-03-29T02:06:04.718Z (over 1 year ago)
- Topics: neovim, nvim-cmp
- Language: Lua
- Homepage:
- Size: 192 KB
- Stars: 144
- Watchers: 3
- Forks: 10
- Open Issues: 1
-
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).

## 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 command
Original 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.