8 local function autocmd(event, opts) |
8 local function autocmd(event, opts) |
9 util.autocmd(g, event, filepattern, opts) |
9 util.autocmd(g, event, filepattern, opts) |
10 end |
10 end |
11 |
11 |
12 autocmd({ "BufReadPre", "FileReadPre" }, { |
12 autocmd({ "BufReadPre", "FileReadPre" }, { |
13 command = [[ setl noswapfile noundofile nobackup viminfo= ]] |
13 command = [[ setl noswapfile noundofile nobackup viminfo= ]], |
14 }) |
14 }) |
15 |
15 |
16 autocmd("BufReadPost", function(_) |
16 autocmd("BufReadPost", function(_) |
17 safe_filter_file("gpg -d") |
17 safe_filter_file("gpg -d") |
18 end) |
18 end) |