Add neotree shortcut to alpha, return to left panel
This commit is contained in:
parent
8c7f8dba52
commit
9e8849ad08
|
@ -15,8 +15,9 @@ return {
|
|||
dashboard.section.header.val = vim.split(logo, "\n")
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button("f", " " .. " Find file", ":Telescope find_files <CR>"),
|
||||
dashboard.button("n", " " .. " New file", ":ene <BAR> startinsert <CR>"),
|
||||
dashboard.button("e", " " .. " Edit new file", ":ene <BAR> startinsert <CR>"),
|
||||
dashboard.button("r", " " .. " Recent files", ":Telescope oldfiles <CR>"),
|
||||
dashboard.button("n", " " .. " Neotree", ":Neotree left <CR>"),
|
||||
dashboard.button("g", " " .. " Git status", ":Neogit <CR>"),
|
||||
dashboard.button("c", " " .. " Config", ":e $MYVIMRC <CR>"),
|
||||
dashboard.button("l", " " .. " Lazy", ":Lazy<CR>"),
|
||||
|
|
|
@ -12,9 +12,8 @@ return {
|
|||
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 float 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>")
|
||||
vim.keymap.set("n", "<leader>ns", "<cmd>Neotree float git_status<cr>")
|
||||
end,
|
||||
config = true,
|
||||
opts = {
|
||||
|
|
|
@ -2,14 +2,6 @@ return {
|
|||
"nvim-treesitter/nvim-treesitter",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter-refactor" },
|
||||
cmd = {
|
||||
"TSToggle",
|
||||
"TSBufEnable",
|
||||
"TSBufToggle",
|
||||
"TSInstall",
|
||||
"TSUpdate",
|
||||
"TSEnable",
|
||||
},
|
||||
config = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
-- @type table<string, boolean>
|
||||
|
|
Loading…
Reference in a new issue