Skip to content

Commit

Permalink
fix: set bufhidden = 'hide' by default (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed May 17, 2023
1 parent d0efcc0 commit 19563c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ require("oil").setup({
-- Buffer-local options to use for oil buffers
buf_options = {
buflisted = false,
bufhidden = "hide",
},
-- Window-local options to use for oil buffers
win_options = {
Expand Down
1 change: 1 addition & 0 deletions doc/oil.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ OPTIONS *oil-option
-- Buffer-local options to use for oil buffers
buf_options = {
buflisted = false,
bufhidden = "hide",
},
-- Window-local options to use for oil buffers
win_options = {
Expand Down
1 change: 1 addition & 0 deletions lua/oil/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ local default_config = {
-- Buffer-local options to use for oil buffers
buf_options = {
buflisted = false,
bufhidden = "hide",
},
-- Window-local options to use for oil buffers
win_options = {
Expand Down

0 comments on commit 19563c3

Please sign in to comment.