diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-04-23 18:30:00 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-04-23 18:30:00 +0300 |
| commit | 9745e7004f4a74b55c5fc1cdd12df2ee7cfc38e4 (patch) | |
| tree | 0b8b262ca6a44f0a9783735578c1b7478e4ef345 /.config/nvim/lua/custom/plugins | |
| parent | 3f0f0a08bc4661d438347b2c12a125ce9e5ccfe7 (diff) | |
Oil can now copy paste into clipboard with gy and gp
Diffstat (limited to '.config/nvim/lua/custom/plugins')
| -rw-r--r-- | .config/nvim/lua/custom/plugins/oil.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/nvim/lua/custom/plugins/oil.lua b/.config/nvim/lua/custom/plugins/oil.lua index ce888c5..7b7521d 100644 --- a/.config/nvim/lua/custom/plugins/oil.lua +++ b/.config/nvim/lua/custom/plugins/oil.lua @@ -17,11 +17,23 @@ return { ['<C-r>'] = 'actions.refresh', ['Q'] = 'actions.close', ['gS'] = 'actions.change_sort', + ['gy'] = 'actions.copy_to_system_clipboard', + ['gp'] = 'actions.paste_from_system_clipboard', }, view_options = { show_hidden = true, natural_order = true, }, + + lsp_file_methods = { + -- Enable or disable LSP file operations + enabled = true, + -- 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, + }, }, cmd = 'Oil', event = 'VimEnter', |
