Awesome
compe-latex-symbols
nvim-compe source for Unicode symbols insertion by LaTeX-like name. Just type \pointright
,
invoke completion and enjoy your ☞.
Supports most symbols from this list: http://milde.users.sourceforge.net/LUCR/Math/
Installation
Use your favorite package manager. Example for packer.nvim:
use 'GoldsteinE/compe-latex-symbols'
Requires nvim-compe to use.
Configuration
require('compe').setup {
-- Other options
source = {
-- Other sources
latex_symbols = true;
}
}
Options
Insert the code
You can customize to insert either the symbol or the code itself with b:compe_latex_insert_code
.
" Always insert the code in markdown files
autocmd FileType markdown let b:compe_latex_insert_code = v:true