From 9c4fc87befb0a47744f06da97f9883547d4cf958 Mon Sep 17 00:00:00 2001 From: "Gustavo L de Mello (Guz)" Date: Sun, 8 Dec 2024 11:30:11 -0300 Subject: [PATCH] feat(ide): terminal file manager integration --- lua/dot013/plugins/ide.lua | 17 +++++++++++++++++ neovim.nix | 10 ++++++++++ 2 files changed, 27 insertions(+) diff --git a/lua/dot013/plugins/ide.lua b/lua/dot013/plugins/ide.lua index 865be33..5a82bb3 100644 --- a/lua/dot013/plugins/ide.lua +++ b/lua/dot013/plugins/ide.lua @@ -179,4 +179,21 @@ return { }) end, }, + + -- File explorer + { + -- (Probably can be replaced by local functions in the config) + "tfm.nvim", + cmd = { "Ex", "Tfm", "TfmSplit", "TfmVsplit", "TfmTabedit" }, + keys = { + { "e", ":Tfm", desc = "[TFM] Open file manager" }, + }, + after = function() + require("tfm").setup({ + file_manager = "lf", -- TODO: Use Yazi (https://github.com/sxyazi/yazi) as file manager + replace_netrw = true, + enable_cmds = true, + }) + end, + }, } diff --git a/neovim.nix b/neovim.nix index 24b5360..73bc4fb 100644 --- a/neovim.nix +++ b/neovim.nix @@ -56,6 +56,16 @@ rev = "cde4fb2968704aae5c18b7f8a9bc2508767bb78d"; }; }) + + # Probably can be replaced by local functions in the config + (vimUtils.buildVimPlugin { + pname = "tfm.nvim"; + version = "2024-04-23"; + src = fetchGit { + url = "https://github.com/Rolv-Apneseth/tfm.nvim"; + rev = "fb0de2c96bf303216ac5d91ce9bdb7f430030f8b"; + }; + }) ]; languageServers = with pkgs; [