Skip to content

Commit

Permalink
fix: disable swapfile for oil buffers (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Nov 1, 2023
1 parent 05a80e2 commit 2e6996b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/oil/view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ M.initialize = function(bufnr)
group = "Oil",
})
vim.bo[bufnr].buftype = "acwrite"
vim.bo[bufnr].swapfile = false
vim.bo[bufnr].syntax = "oil"
vim.bo[bufnr].filetype = "oil"
vim.b[bufnr].EditorConfig_disable = 1
Expand Down

0 comments on commit 2e6996b

Please sign in to comment.