oil watches file changes

This commit is contained in:
Jannik Donker
2026-08-10 13:33:45 +02:00
parent 8daff33d2d
commit dbc6188a72
+4 -1
View File
@@ -38,13 +38,16 @@ pcall(vim.cmd.colorscheme, "gruvbox")
-- Simple setup({}) plugins -- Simple setup({}) plugins
for _, name in ipairs({ for _, name in ipairs({
"oil", "mini.pick", "mini.extra", "mini.icons", "mason", "typst-preview", "mini.pick", "mini.extra", "mini.icons", "mason", "typst-preview",
"nvim-autopairs", "mini.jump", "nvim-autopairs", "mini.jump",
"mini.ai", "nvim-ts-autotag", "todo-comments", "csvview", "mini.ai", "nvim-ts-autotag", "todo-comments", "csvview",
}) do }) do
pcall(function() require(name).setup() end) pcall(function() require(name).setup() end)
end end
-- Auto-refresh the oil buffer when the filesystem changes externally.
require("oil").setup({ watch_for_changes = true })
-- Open the Trouble window even when there are no results (e.g. no -- Open the Trouble window even when there are no results (e.g. no
-- diagnostics) instead of erroring out with "No results". -- diagnostics) instead of erroring out with "No results".
require("trouble").setup({ open_no_results = true }) require("trouble").setup({ open_no_results = true })