added a file manager
This commit is contained in:
13
init.lua
13
init.lua
@@ -126,7 +126,18 @@ vim.schedule(function()
|
||||
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
|
||||
-- =============================================================================
|
||||
|
||||
@@ -45,7 +45,7 @@ end
|
||||
-- Das Hauptmenü
|
||||
function M.open()
|
||||
local lines = {
|
||||
" Mono VIM - 0.16",
|
||||
" Mono VIM - 0.17",
|
||||
"========================",
|
||||
"",
|
||||
" [n] New File",
|
||||
|
||||
@@ -6,4 +6,5 @@ return {
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
"tpope/vim-fugitive",
|
||||
"echasnovski/mini.nvim",
|
||||
"stevearc/oil.nvim",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user