Skip to content

Commit

Permalink
fix(oil-nvim): disable view for oil buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Mar 18, 2024
1 parent dd78f63 commit 3203899
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lua/astrocommunity/file-explorer/oil-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ return {
["<Leader>O"] = { function() require("oil").open() end, desc = "Open folder in Oil" },
},
},
autocmds = {
oil_settings = {
{
event = "FileType",
desc = "Disable view saving for oil buffers",
pattern = "oil",
callback = function(args) vim.b[args.buf].view_activated = false end,
},
},
},
},
},
},
Expand Down

0 comments on commit 3203899

Please sign in to comment.