From b66651422c8943fe8b36b879dfeb94621b7718ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Dudr?= Date: Thu, 14 Mar 2024 21:33:48 +0100 Subject: [PATCH] nvim: update oil config --- dot_config/nvim/lua/configs/packages/oil.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/dot_config/nvim/lua/configs/packages/oil.lua b/dot_config/nvim/lua/configs/packages/oil.lua index 9a1f3af..2f7eaae 100644 --- a/dot_config/nvim/lua/configs/packages/oil.lua +++ b/dot_config/nvim/lua/configs/packages/oil.lua @@ -43,9 +43,13 @@ return { -- You can set the delay to false to disable cleanup entirely -- Note that the cleanup process only starts when none of the oil buffers are currently displayed cleanup_delay_ms = 2000, - -- Set to true to autosave buffers that are updated with LSP willRenameFiles - -- Set to "unmodified" to only save unmodified buffers - lsp_rename_autosave = false, + lsp_file_methods = { + -- Time to wait for LSP file operations to complete before skipping + timeout_ms = 1000, + -- Set to true to autosave buffers that are updated with LSP willRenameFiles + -- Set to "unmodified" to only save unmodified buffers + autosave_changes = false, + }, -- Constrain the cursor to the editable parts of the oil buffer -- Set to `false` to disable, or "name" to keep it on the file names constrain_cursor = 'editable', @@ -60,7 +64,7 @@ return { [''] = 'actions.select', [''] = 'actions.select_vsplit', [''] = 'actions.select_split', - [''] = 'actions.select_tab', + -- [''] = 'actions.select_tab', [''] = 'actions.preview', [''] = 'actions.close', [''] = 'actions.open_terminal',