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

changeset 1082
098f661195c1
parent 1080
83c9f8460bde
child 1086
82f517e1ae76
--- a/.config/nvim/lua/config/autocmds.lua
+++ b/.config/nvim/lua/config/autocmds.lua
@@ -50,22 +50,3 @@ end)
 autocmd(g, "BufReadPost", "*", function()
   fn.matchadd("Error", [[\m^\([<>|]\)\{7} \@=\|^=\{7}$]])
 end)
-
--- >> nicer quickfix
-autocmd(g, "BufReadPost", "quickfix", {
-  callback = function(ctx)
-    -- simplify noisy :ltag output
-    if string.match(vim.w.quickfix_title, "^ltag") then
-      -- Hide ctags regex anchors
-      fn.matchadd("Conceal", [[\m|\zs\^\\V\|\\$\ze|]])
-
-      -- 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)
-      fn.matchadd("Underlined", [[\m|.*\zs]] .. tagmatch .. [[\m\ze.*|]])
-    end
-
-    -- easy close
-    vim.keymap.set("n", "q", "<C-w>q", { buffer = true })
-  end,
-})

mercurial