Skip to content

Commit

Permalink
refactor: don't need a preview_gap option
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Jun 18, 2024
1 parent 54a6cb8 commit 8fb06b1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,6 @@ require("oil").setup({
win_options = {
winblend = 0,
},
-- gap between oil window and preview window
preview_gap = 2,
-- preview_split: Split direction: "auto", "left", "right", "above", "below".
preview_split = "auto",
-- This is the config that will be passed to nvim_open_win.
Expand Down
2 changes: 0 additions & 2 deletions doc/oil.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ CONFIG *oil-confi
win_options = {
winblend = 0,
},
-- gap between oil window and preview window
preview_gap = 2,
-- preview_split: Split direction: "auto", "left", "right", "above", "below".
preview_split = "auto",
-- This is the config that will be passed to nvim_open_win.
Expand Down
2 changes: 0 additions & 2 deletions lua/oil/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ local default_config = {
win_options = {
winblend = 0,
},
-- gap between oil window and preview window
preview_gap = 2,
-- preview_split: Split direction: "auto", "left", "right", "above", "below".
preview_split = "auto",
-- This is the config that will be passed to nvim_open_win.
Expand Down
2 changes: 1 addition & 1 deletion lua/oil/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ M.open_preview = function(opts, callback)
if util.is_floating_win() then
if preview_win == nil then
local root_win_opts, preview_win_opts =
layout.split_window(0, config.float.preview_split, config.float.preview_gap)
layout.split_window(0, config.float.preview_split, config.float.padding)

local win_opts_oil = {
relative = "editor",
Expand Down

0 comments on commit 8fb06b1

Please sign in to comment.