Disable neotree, switch to oil
This commit is contained in:
parent
d7c4833432
commit
1b50d9757f
|
@ -16,7 +16,7 @@ return {
|
||||||
dashboard.section.buttons.val = {
|
dashboard.section.buttons.val = {
|
||||||
dashboard.button("f", " " .. " Find file", "<cmd>Telescope find_files <CR>"),
|
dashboard.button("f", " " .. " Find file", "<cmd>Telescope find_files <CR>"),
|
||||||
dashboard.button("r", " " .. " Recent files", "<cmd>Telescope oldfiles <CR>"),
|
dashboard.button("r", " " .. " Recent files", "<cmd>Telescope oldfiles <CR>"),
|
||||||
dashboard.button("n", " " .. " Neotree", "<cmd>Neotree left <CR>"),
|
dashboard.button("n", " " .. " Oil file browser", "<cmd>Oil <CR>"),
|
||||||
dashboard.button("g", " " .. " Git status", "<cmd>Neogit <CR>"),
|
dashboard.button("g", " " .. " Git status", "<cmd>Neogit <CR>"),
|
||||||
dashboard.button("c", " " .. " Config", "<cmd>e $MYVIMRC <CR>"),
|
dashboard.button("c", " " .. " Config", "<cmd>e $MYVIMRC <CR>"),
|
||||||
dashboard.button("l", " " .. " Lazy", "<cmd>Lazy<CR>"),
|
dashboard.button("l", " " .. " Lazy", "<cmd>Lazy<CR>"),
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
return {
|
return {
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
|
enabled = false,
|
||||||
branch = "v2.x",
|
branch = "v2.x",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
|
|
25
lua/plugins/oil.lua
Normal file
25
lua/plugins/oil.lua
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
return {
|
||||||
|
"stevearc/oil.nvim",
|
||||||
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
|
cmd = "Oil",
|
||||||
|
init = function()
|
||||||
|
vim.keymap.set("n", "<leader>o", "<cmd>Oil<cr>")
|
||||||
|
if vim.fn.argc() == 1 then
|
||||||
|
local stat = vim.loop.fs_stat(vim.fn.argv(0))
|
||||||
|
if stat and stat.type == "directory" then require "oil" end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
config = true,
|
||||||
|
opts = {
|
||||||
|
float = {
|
||||||
|
-- Padding around the floating window
|
||||||
|
padding = 2,
|
||||||
|
max_width = 0,
|
||||||
|
max_height = 0,
|
||||||
|
border = "rounded",
|
||||||
|
win_options = {
|
||||||
|
winblend = 10,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in a new issue