formatting
This commit is contained in:
parent
3c84ec54bf
commit
452abf2029
25 changed files with 635 additions and 536 deletions
|
@ -2,9 +2,11 @@ return {
|
|||
"nvim-neo-tree/neo-tree.nvim",
|
||||
dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim", "nvim-tree/nvim-web-devicons" },
|
||||
cmd = "Neotree",
|
||||
init = function() vim.g.neo_tree_remove_legacy_commands = true end,
|
||||
init = function()
|
||||
vim.g.neo_tree_remove_legacy_commands = true
|
||||
end,
|
||||
pin = true,
|
||||
tag = '2.56',
|
||||
tag = "2.56",
|
||||
opts = {
|
||||
auto_clean_after_session_restore = true,
|
||||
close_if_last_window = true,
|
||||
|
@ -30,13 +32,16 @@ return {
|
|||
},
|
||||
keys = {
|
||||
{ "<leader>e", "<cmd>Neotree toggle<CR>", desc = "Toggle Explorer" },
|
||||
{ "<leader>o",function()
|
||||
if vim.bo.filetype == "neo-tree" then
|
||||
vim.cmd.wincmd "p"
|
||||
else
|
||||
vim.cmd.Neotree "focus"
|
||||
end
|
||||
end , desc = "Toggle Explorer Focus" },
|
||||
{
|
||||
"<leader>o",
|
||||
function()
|
||||
if vim.bo.filetype == "neo-tree" then
|
||||
vim.cmd.wincmd("p")
|
||||
else
|
||||
vim.cmd.Neotree("focus")
|
||||
end
|
||||
end,
|
||||
desc = "Toggle Explorer Focus",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue