Add latex symbol support for nvim-cmp.
Using Packer:
use({
"hrsh7th/nvim-cmp",
requires = {
{ "kdheepak/cmp-latex-symbols" },
},
sources = {
{
name = "latex_symbols",
option = {
strategy = 0, -- mixed
},
},
},
})
Set the display strategy.
Type: number
Default: 0 -- mixed
Possible values:
0 -- mixed
Show the command and insert the symbol1 -- julia
Show and insert the symbol2 -- latex
Show and insert the command
Original based on compe-latex-symbols.
Currently uses unimathsymbols.txt
and LaTeX symbols defined by the Julia REPL.
For emoji's, use this source.
See @ExpandingMan's repo for a source with all and only the latex and emoji symbols defined by the Julia REPL.