added a file manager

This commit is contained in:
2026-04-08 03:51:58 +02:00
parent fdb4f984d6
commit 6ba53cf1e3
3 changed files with 16 additions and 4 deletions

View File

@@ -126,7 +126,18 @@ vim.schedule(function()
end end
end end
end) end)
local ok_oil, oil = pcall(require, "oil")
if ok_oil then
oil.setup({
default_file_explorer = true,
columns = { "icon" }, -- Du kannst "icon" auch löschen für puren Text
view_options = {
show_hidden = true,
},
})
-- Keymap: Leertaste + f (File)
vim.keymap.set("n", "<leader>f", "<CMD>Oil<CR>", { desc = "Öffne File Manager" })
end
-- ============================================================================= -- =============================================================================
-- 7. BUFFER MANAGEMENT & DASHBOARD LOGIK -- 7. BUFFER MANAGEMENT & DASHBOARD LOGIK
-- ============================================================================= -- =============================================================================

View File

@@ -45,7 +45,7 @@ end
-- Das Hauptmenü -- Das Hauptmenü
function M.open() function M.open()
local lines = { local lines = {
" Mono VIM - 0.16", " Mono VIM - 0.17",
"========================", "========================",
"", "",
" [n] New File", " [n] New File",

View File

@@ -6,4 +6,5 @@ return {
"williamboman/mason-lspconfig.nvim", "williamboman/mason-lspconfig.nvim",
"tpope/vim-fugitive", "tpope/vim-fugitive",
"echasnovski/mini.nvim", "echasnovski/mini.nvim",
"stevearc/oil.nvim",
} }