refactor!: disable netrw by default (#155)
If you use oil and you want to still use netrw, set `default_file_explorer = false`. It is nonsensical to both use netrw _and_ have oil hijack directory buffers (which was the case for the default config). It also causes undefined behavior and bugs. When `default_file_explorer = true` (the default) oil will now disable netrw for you.
This commit is contained in:
parent
8f7807946a
commit
9d90893c37
5 changed files with 20 additions and 38 deletions
5
.github/generate.py
vendored
5
.github/generate.py
vendored
|
|
@ -73,10 +73,11 @@ def update_readme_toc():
|
|||
|
||||
def update_config_options():
|
||||
config_file = os.path.join(ROOT, "lua", "oil", "config.lua")
|
||||
opt_lines = read_section(config_file, r"^\s*local default_config =", r"^}$")
|
||||
opt_lines = ['\n```lua\nrequire("oil").setup({\n']
|
||||
opt_lines.extend(read_section(config_file, r"^\s*local default_config =", r"^}$"))
|
||||
replace_section(
|
||||
README,
|
||||
r"^require\(\"oil\"\)\.setup\(\{$",
|
||||
r"^## Options$",
|
||||
r"^}\)$",
|
||||
opt_lines,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue