robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
64a301184e
master
1#pragma once 2 3#include "nvim/api/private/defs.h" // IWYU pragma: keep 4#include "nvim/os/time_defs.h" // IWYU pragma: keep 5 6/// Flags for shada_read_file and children 7typedef enum { 8kShaDaWantInfo = 1 ,///< Load non-mark information 9kShaDaWantMarks = 2 ,///< Load local file marks and change list 10kShaDaForceit = 4 ,///< Overwrite info already read 11kShaDaGetOldfiles = 8 ,///< Load v:oldfiles. 12kShaDaMissingError = 16 ,///< Error out when os_open returns -ENOENT. 13kShaDaNanos = 32 ,///< Timestamps are ns (Context), instead of seconds (shada legacy). 14kShaDaNoHistory = 64 ,///< Skip cmdline/search history merge (perf: O(history) per read). 15kShaDaNoOpt = 128 ,///< Ignore 'shada': only these flags decide what is read. 16}ShaDaReadFileFlags ; 17 18#include "shada.h.generated.h"