Re-enable neo-tree as complement to oil

Add extra shortcuts to Alpha, convert all icons to md style
This commit is contained in:
Evie Litherland-Smith 2023-05-19 07:50:40 +01:00
parent 67d3b1368b
commit a490b9c345
2 changed files with 7 additions and 13 deletions

View file

@ -14,13 +14,15 @@ return {
dashboard.section.header.val = vim.split(logo, "\n")
dashboard.section.buttons.val = {
dashboard.button("f", "" .. " Find file", "<cmd>Telescope find_files <CR>"),
dashboard.button("r", "" .. " Recent files", "<cmd>Telescope oldfiles <CR>"),
dashboard.button("o", "󱏒 " .. " Oil file browser", "<cmd>Oil <CR>"),
dashboard.button("f", "󰍉 " .. " Find file", "<cmd>Telescope find_files <CR>"),
dashboard.button("r", "󱀲 " .. " Recent files", "<cmd>Telescope oldfiles <CR>"),
dashboard.button("o", "󰪶 " .. " Oil file browser", "<cmd>Oil <CR>"),
dashboard.button("n", "󱏒 " .. " Neo-tree", "<cmd>Neotree float <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("q", "" .. " Quit", "<cmd>qa<CR>"),
dashboard.button("h", "󰋖 " .. " Help", "<cmd>Telescope help_tags <CR>"),
dashboard.button("q", "󰗼 " .. " Quit", "<cmd>qa<CR>"),
}
for _, button in ipairs(dashboard.section.buttons.val) do
button.opts.hl = "AlphaButtons"

View file

@ -1,6 +1,5 @@
return {
"nvim-neo-tree/neo-tree.nvim",
enabled = false,
branch = "v2.x",
dependencies = {
"nvim-lua/plenary.nvim",
@ -9,15 +8,8 @@ return {
},
cmd = "Neotree",
init = function()
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.g.neo_tree_remove_legacy_commands = 1
vim.keymap.set("n", "<leader>nn", "<cmd>Neotree left reveal reveal_force_cwd<cr>")
vim.keymap.set("n", "<leader>nb", "<cmd>Neotree toggle show buffers right<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 "neo-tree" end
end
end,
config = true,
opts = {