Skip to content

Commit

Permalink
feat: config option to skip the disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Jan 20, 2023
1 parent 6b10a36 commit adff3b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/oil/mutator/disclaimer.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
local config = require("oil.config")
local fs = require("oil.fs")
local ReplLayout = require("oil.repl_layout")
local M = {}

M.show = function(callback)
if config.silence_disclaimer then
return callback(true)
end
local marker_file = fs.join(vim.fn.stdpath("cache"), ".oil_accepted_disclaimer")
vim.loop.fs_stat(
marker_file,
Expand Down

0 comments on commit adff3b9

Please sign in to comment.