updated oil config
This commit is contained in:
@@ -118,7 +118,7 @@ Live preview of markdown files in browser, with synced scrolling
|
||||
Provides Nerd font icons for other plugins to use
|
||||
|
||||
---
|
||||
#### [Oil](https://github.com/nvim-tree/nvim-web-devicons)
|
||||
#### [Oil](https://github.com/stevearc/oil.nvim)
|
||||
Edit/view your filesystem like a normal NeoVim buffer
|
||||
|
||||
---
|
||||
|
||||
@@ -6,7 +6,16 @@ return {
|
||||
-- Optional dependencies
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
require("oil").setup()
|
||||
require("oil").setup({
|
||||
watch_for_changes = true,
|
||||
view_options = {
|
||||
show_hidden = true,
|
||||
is_always_hidden = function(name, bufnr)
|
||||
local m = name:match("^%.%.")
|
||||
return m ~= nil
|
||||
end,
|
||||
},
|
||||
})
|
||||
vim.keymap.set("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory" })
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user