From dbc6188a72a4fd0186d235e46cb8caaca0216552 Mon Sep 17 00:00:00 2001 From: Jannik Donker Date: Mon, 10 Aug 2026 13:33:45 +0200 Subject: [PATCH] oil watches file changes --- lua/plugins.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 82f4ce6..6f90260 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -38,13 +38,16 @@ pcall(vim.cmd.colorscheme, "gruvbox") -- Simple setup({}) plugins 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", "mini.ai", "nvim-ts-autotag", "todo-comments", "csvview", }) do pcall(function() require(name).setup() 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 -- diagnostics) instead of erroring out with "No results". require("trouble").setup({ open_no_results = true })