Public Access
oil watches file changes
This commit is contained in:
+4
-1
@@ -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 })
|
||||||
|
|||||||
Reference in New Issue
Block a user