Re-enable neo-tree as complement to oil
Add extra shortcuts to Alpha, convert all icons to md style
This commit is contained in:
parent
67d3b1368b
commit
a490b9c345
|
@ -14,13 +14,15 @@ return {
|
||||||
|
|
||||||
dashboard.section.header.val = vim.split(logo, "\n")
|
dashboard.section.header.val = vim.split(logo, "\n")
|
||||||
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("o", " " .. " Oil file browser", "<cmd>Oil <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("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>"),
|
||||||
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
|
for _, button in ipairs(dashboard.section.buttons.val) do
|
||||||
button.opts.hl = "AlphaButtons"
|
button.opts.hl = "AlphaButtons"
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
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",
|
||||||
|
@ -9,15 +8,8 @@ return {
|
||||||
},
|
},
|
||||||
cmd = "Neotree",
|
cmd = "Neotree",
|
||||||
init = function()
|
init = function()
|
||||||
vim.g.loaded_netrw = 1
|
|
||||||
vim.g.loaded_netrwPlugin = 1
|
|
||||||
vim.g.neo_tree_remove_legacy_commands = 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>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,
|
end,
|
||||||
config = true,
|
config = true,
|
||||||
opts = {
|
opts = {
|
||||||
|
|
Loading…
Reference in a new issue