.config/nvim/lua/config/autocmds.lua

changeset 1080
83c9f8460bde
parent 1078
aa4c1aa529a5
child 1082
098f661195c1
--- a/.config/nvim/lua/config/autocmds.lua
+++ b/.config/nvim/lua/config/autocmds.lua
@@ -59,9 +59,9 @@ autocmd(g, "BufReadPost", "quickfix", {
       -- Hide ctags regex anchors
       fn.matchadd("Conceal", [[\m|\zs\^\\V\|\\$\ze|]])
 
-      -- highlight match in line. if tagname begins with / the rest is a \V
+      -- 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.
-      local tagmatch = string.gsub(vim.fn.gettagstack().items[1].tagname, "^/", "\\V", 1)
+      local tagmatch = string.gsub(vim.fn.gettagstack().items[1].tagname, "^/", "\\v", 1)
       fn.matchadd("Underlined", [[\m|.*\zs]] .. tagmatch .. [[\m\ze.*|]])
     end
 

mercurial