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/
Use your favorite package manager. Example for packer.nvim:
use 'GoldsteinE/compe-latex-symbols'
Requires nvim-compe to use.
require('compe').setup {
-- Other options
source = {
-- Other sources
latex_symbols = true;
}
}
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