-- Log the pattern matching result to a file logfile = io.open("/tmp/nvim.log", "a") io.output(logfile) for _, ignored_buffer in ipairs(config.buffers.ignored_buffers or {}) do io.write("bufname: "..bufname.."\n") io.write("ignored-buffer-regex: "..ignored_buffer.."\n") io.write("match: ", string.match(bufname, ignored_buffer) and "yes" or "no", "\n") io.write("\n") if string.match(bufname, ignored_buffer) then ignored = true end end io.close()