From ce845048a25f43f07683d41cbed41a537331c2f2 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Sun, 3 May 2026 09:47:59 +0700 Subject: [PATCH] refactor(nvim): replace oil with fyler Similar but has tree view. --- .config/nvim/init.lua | 14 +++++--------- .config/nvim/nvim-pack-lock.json | 8 ++++---- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index dcbae12..caca308 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -35,7 +35,7 @@ vim.schedule(function() "https://github.com/lukas-reineke/indent-blankline.nvim", "https://github.com/ibhagwan/fzf-lua", "https://github.com/MagicDuck/grug-far.nvim", - "https://github.com/stevearc/oil.nvim", + "https://github.com/A7Lavinraj/fyler.nvim", "https://github.com/neovim/nvim-lspconfig", { src = "https://github.com/Saghen/blink.cmp", version = vim.version.range("1.x") }, "https://github.com/windwp/nvim-autopairs", @@ -95,16 +95,12 @@ vim.schedule(function() map("n", "/", "FzfLua grep_project") map("n", "?", "FzfLua live_grep") - require("oil").setup({ - view_options = { - show_hidden = true, - is_always_hidden = function(name, _) - return name == ".." - end, + require("fyler").setup({ + integrations = { + icon = "none", }, }) - map("n", "-", "Oil") - map("n", "_", "Oil .") + map("n", "-", function() require("fyler").open({ kind = "float" }) end) vim.lsp.enable({ -- :help lspconfig-all diff --git a/.config/nvim/nvim-pack-lock.json b/.config/nvim/nvim-pack-lock.json index c26a969..59bbac7 100644 --- a/.config/nvim/nvim-pack-lock.json +++ b/.config/nvim/nvim-pack-lock.json @@ -5,6 +5,10 @@ "src": "https://github.com/Saghen/blink.cmp", "version": "1.0.0 - 2.0.0" }, + "fyler.nvim": { + "rev": "e87911e6c21d099225063f5aa672e00f6dbb5976", + "src": "https://github.com/A7Lavinraj/fyler.nvim" + }, "fzf-lua": { "rev": "ffa44ee9470743a7697d28df3a1a216fdfe2b09d", "src": "https://github.com/ibhagwan/fzf-lua" @@ -41,10 +45,6 @@ "rev": "81878de76c0de4ce289513734ad80c31ec7871b8", "src": "https://github.com/neovim/nvim-lspconfig" }, - "oil.nvim": { - "rev": "0fcc83805ad11cf714a949c98c605ed717e0b83e", - "src": "https://github.com/stevearc/oil.nvim" - }, "onedark.nvim": { "rev": "df4792accde9db0043121f32628bcf8e645d9aea", "src": "https://github.com/navarasu/onedark.nvim" -- 2.51.2