nvim: use vim.pack

This commit is contained in:
2025-12-20 10:30:27 +01:00
parent 48392501e1
commit 292de198a6
13 changed files with 475 additions and 428 deletions

View File

@@ -1,5 +1,10 @@
return {
init = function()
vim.keymap.set("n", "<leader>-", "<cmd>Oil<cr>", { desc = "Oil file manager" })
end,
}
vim.pack.add({ "https://github.com/stevearc/oil.nvim" })
local ok, oil = pcall(require, "oil")
if ok then
oil.setup()
else
print("plugin oil missing")
end
vim.keymap.set("n", "<leader>-", "<cmd>Oil<cr>", { desc = "Oil file manager" })