Skip to content

Commit

Permalink
Fix how the folder and file mode are added to config
Browse files Browse the repository at this point in the history
  • Loading branch information
fortizc committed Dec 26, 2024
1 parent 11e38c0 commit 6b7ceaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/oil/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ M.setup = function(opts)
new_conf.confirmation = vim.tbl_deep_extend("keep", opts.preview, default_config.confirmation)
end

M.new_file_mode = tonumber(tostring(opts.new_file_mode), 8)
M.new_folder_mode = tonumber(tostring(opts.new_folder_mode), 8)
new_conf.new_file_mode = tonumber(tostring(new_conf.new_file_mode), 8)
new_conf.new_folder_mode = tonumber(tostring(new_conf.new_folder_mode), 8)
-- Backwards compatibility. We renamed the 'preview' config to 'preview_win'
if opts.preview and opts.preview.update_on_cursor_moved ~= nil then
new_conf.preview_win.update_on_cursor_moved = opts.preview.update_on_cursor_moved
Expand Down

0 comments on commit 6b7ceaa

Please sign in to comment.