nvim: Add oil.nvim
This commit is contained in:
parent
9decd546d3
commit
cd077c6856
23
nvim/.config/nvim/lua/lazy-plugins/ui-oil.lua
Normal file
23
nvim/.config/nvim/lua/lazy-plugins/ui-oil.lua
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
return {
|
||||||
|
"stevearc/oil.nvim",
|
||||||
|
---@module 'oil'
|
||||||
|
---@type oil.SetupOpts
|
||||||
|
opts = {},
|
||||||
|
config = function()
|
||||||
|
local oil = require("oil")
|
||||||
|
|
||||||
|
-- set keymaps
|
||||||
|
local keymap = vim.keymap -- for conciseness
|
||||||
|
|
||||||
|
keymap.set("n", "<leader>er", function()
|
||||||
|
oil.toggle_float()
|
||||||
|
end, { desc = "Open oil.nvim in floating window" })
|
||||||
|
|
||||||
|
oil.setup()
|
||||||
|
end,
|
||||||
|
-- Optional dependencies
|
||||||
|
dependencies = { { "nvim-mini/mini.icons", opts = {} } },
|
||||||
|
-- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons
|
||||||
|
-- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations.
|
||||||
|
lazy = false,
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user