From 6e1c5f99480dc19f73995221e7a0b7cb7d7f8484 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Wed, 9 Oct 2024 13:50:49 +0700 Subject: [PATCH] nvim: use oil for now --- lazy-lock.json | 2 ++ lua/plugins/oil.lua | 2 +- lua/plugins/yazi.lua | 11 +++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/lazy-lock.json b/lazy-lock.json index d11b8ec..c600064 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -66,6 +66,8 @@ "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "bf8d2ad35d1d1a687eae6c065c3d524f7ab61b23" }, "nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" }, + "nvim-web-devicons": { "branch": "master", "commit": "56f17def81478e406e3a8ec4aa727558e79786f3" }, + "oil.nvim": { "branch": "master", "commit": "ccab9d5e09e2d0042fbbe5b6bd05e82426247067" }, "one-small-step-for-vimkind": { "branch": "main", "commit": "0f0d5bc67786c36edc2cb6fb5faa5c09dd1a6e10" }, "persistence.nvim": { "branch": "main", "commit": "f6aad7dde7fcf54148ccfc5f622c6d5badd0cc3d" }, "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, diff --git a/lua/plugins/oil.lua b/lua/plugins/oil.lua index e0a449b..b4f1058 100644 --- a/lua/plugins/oil.lua +++ b/lua/plugins/oil.lua @@ -11,5 +11,5 @@ return { keys = { { "-", "Oil", desc = "Open Oil" }, }, - enabled = false, + enabled = true, } diff --git a/lua/plugins/yazi.lua b/lua/plugins/yazi.lua index cf5b79c..16306b4 100644 --- a/lua/plugins/yazi.lua +++ b/lua/plugins/yazi.lua @@ -9,4 +9,15 @@ return { desc = "Open the default terminal file manager", }, }, + opts = { + keybindings = { + [""] = "q", + -- Override the open mode (i.e. vertical/horizontal split, new tab) + -- Tip: you can add an extra `` to the end of these to immediately open the selected file(s) (assuming the TFM uses `enter` to finalise selection) + [""] = ":lua require('tfm').set_next_open_mode(require('tfm').OPEN_MODE.vsplit)", + [""] = ":lua require('tfm').set_next_open_mode(require('tfm').OPEN_MODE.split)", + [""] = ":lua require('tfm').set_next_open_mode(require('tfm').OPEN_MODE.tabedit)", + }, + }, + enabled = false, }