From c906e208e2b0c79d64a86c34e93e7cbce8942612 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 2 Nov 2022 00:26:16 +0100 Subject: [PATCH] neovim: Add conceal for stmaryrd symbols --- users/simon/modules/neovim/init.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/users/simon/modules/neovim/init.lua b/users/simon/modules/neovim/init.lua index 4c1e7be..b37df9e 100644 --- a/users/simon/modules/neovim/init.lua +++ b/users/simon/modules/neovim/init.lua @@ -333,6 +333,19 @@ g.vimtex_quickfix_ignore_filters = { [[Package typearea Warning: Bad type area settings!]], } +g.vimtex_syntax_custom_cmds = { + { + name = 'llbracket', + mathmode = true, + concealchar = '⟦', + }, + { + name = 'rrbracket', + mathmode = true, + concealchar = '⟧', + }, +} + -- When using math environments vim does not know if if it currently is in one or outside of one -- unless it parses the file from the start. -- Parsing the file from the start each time fixes this