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
I am trying to expand the the UltiSnips within the math environment (I am using SirVer UltiSnips and honza/vim-snippets) but I could not do so inside the inline math mode, though I was able to expand the snippets of Ultisnips in display math mode of vimwiki. you can see that I have tried making a function to return 1 inside math environment. Function does return 1 most of the times inside inline math modes and display math modes and here is the setting in vimwiki.snippets file:
The F1 key then returns "textSnipTEX" inside math blocks of vimwiki (only when some text/number is written in this block):
{{$
any text
}}$
and $....$
Please note that the if I remove the context "math()" before snippet definition which are themselves defined in vimwiki.snippets file, then all snippets do expand without any math environment.
steps to reproduce the issue:
Install the plugin vimwiki/vimwiki ( I am using vim-plug) and try out if UltiSnips are working in math environment or not using the settings I provided and functions I am including.
The text was updated successfully, but these errors were encountered:
vishalrao009
changed the title
Exapanding snippets/Ultisnips in math mode of vimwiki
Failure in Exapanding snippets/Ultisnips in inline math mode of vimwiki
Jan 24, 2024
Problem:
I am trying to expand the the UltiSnips within the math environment (I am using SirVer UltiSnips and honza/vim-snippets) but I could not do so inside the inline math mode, though I was able to expand the snippets of Ultisnips in display math mode of vimwiki. you can see that I have tried making a function to return 1 inside math environment. Function does return 1 most of the times inside inline math modes and display math modes and here is the setting in vimwiki.snippets file:
Here is the code I am using for example snippet
Here is the function included in init.vim file.
Below is the outpur for
:VimwikiShowVersion
Version: 2023.05.12
Os: Mac
Vim: 801
Branch: dev
Revision: 0bb1b49
Date: 2023-10-31 13:45:18 -0300
Below is the outpout for
:version
:version
NVIM v0.10.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.1696795921
Run ":verbose version" for more info
Below is the vimwiki configuration snippet in init.vim of neovim:
let g:vimwiki_listsyms = '✗○◐●✓'
let g:vimwiki_list = [{'path': '
/phd_work/notes/vimwiki', 'syntax': 'default', 'ext': '.wiki'}]/phd_work/notes/vimwiki_html'let g:vimwiki_html_header = '
let g:vimwiki_html_footer = '~/phd_work/notes/vimwiki_html'
au filetype vimwiki silent! iunmap
The F1 key then returns "textSnipTEX" inside math blocks of vimwiki (only when some text/number is written in this block):
Please note that the if I remove the context "math()" before snippet definition which are themselves defined in vimwiki.snippets file, then all snippets do expand without any math environment.
steps to reproduce the issue:
Install the plugin vimwiki/vimwiki ( I am using vim-plug) and try out if UltiSnips are working in math environment or not using the settings I provided and functions I am including.
The text was updated successfully, but these errors were encountered: