tweak qf conceals for when tagfunc is fixed

Wed, 22 Mar 2023 01:14:18 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 22 Mar 2023 01:14:18 -0500
changeset 1091
f407eccdaf61
parent 1090
a9da52816a33
child 1092
5bdcd5080f8c

tweak qf conceals for when tagfunc is fixed

.config/nvim/after/ftplugin/qf.lua file | annotate | diff | comparison | revisions
--- a/.config/nvim/after/ftplugin/qf.lua
+++ b/.config/nvim/after/ftplugin/qf.lua
@@ -5,6 +5,7 @@ local is_loc = wininfo.loclist == 1
 local qftitle = wininfo.variables.quickfix_title
 
 vim.bo.buflisted = false
+vim.wo.conceallevel = 2
 vim.wo.concealcursor = "n"
 vim.wo.wrap = false
 
@@ -15,10 +16,11 @@ if is_loc then
   -- simplify noisy :ltag output
   if qftitle and string.match(qftitle, "^ltag") then
     -- Hide ctags regex anchors
-    fn.matchadd("Conceal", [[\m|\zs\^\\V\|\\$\ze|]])
+    fn.matchadd("Conceal", [[|\zs\^\\V\|\\$\ze|]])
 
     -- Hide lsp tagfunc line/col seek references
-    fn.matchadd("Conceal", [[\m|\zs\\Vcall cursor(\|)\ze|]])
+    fn.matchadd("Conceal", [[|\zs\\V\\%\|c\ze|]])
+    fn.matchadd("Conceal", [[|\\V\\%\d\+\zsl\\%]], 10, -1, {conceal = ","})
 
     -- highlight match in line. if tagname begins with / the rest is a \v
     -- regex. match must be between vertical bars, so its the 2nd column.

mercurial