feat: config option to skip the disclaimer
This commit is contained in:
parent
6b10a36641
commit
adff3b9154
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue