feat(ide): terminal file manager integration

This commit is contained in:
Guz
2024-12-08 11:30:11 -03:00
parent db772fad6f
commit 9c4fc87bef
2 changed files with 27 additions and 0 deletions

View File

@@ -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 = {
{ "<leader>e", ":Tfm<cr>", 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,
},
}

View File

@@ -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; [