You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My objective is to conceal a newcommand \Yo whit よ.
My current configuration for vimtex is this: (~/.../vimtex.lua)
I believe this should be a simplified and improved configuration with the desired added syntax rule
return {
"lervag/vimtex",
lazy=false,
init=function()
vim.g.vimtex_view_method='zathura_simple'vim.g.vimtex_quickfix_mode=0vim.g.vimtex_mappings_enabled=0vim.g.vimtex_indent_enabled=0vim.g.vimtex_context_pdf_viewer='okular'vim.g.vimtex_log_ignore= ({
'Underfull',
'Overfull',
'specifier changed to',
'Token not allowed in a PDF string',
})
vim.g.vimtex_syntax_custom_cmds= {
{
name='Yo',
mathmode=true,
concealchar='よ'
},
}
end,
}
By the way, are you sure you want to disable indentation and the mappings? As a newcomer, I would think it useful to at least have the default mappings.
I am new to neovim so if someone could help me I would appreciate it very much.
My objective is to conceal a newcommand
\Yo
whitよ
.I have read the documentation on
:help g:vimtex_syntax_custom_cmds
, but I don't know how to adapt it to neovim.I use LazyVim whit the tex and luasnip extras enabled.
My current configuration for vimtex is this: (
~/.../vimtex.lua
)The text was updated successfully, but these errors were encountered: