From 962c2bfe690828d6b53b208da8642b7be1938f6b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 26 Sep 2021 18:08:47 +0000 Subject: [PATCH] chore: format source code --- lua/plugins/configs/nvimtree.lua | 86 +++++++++++++++----------------- 1 file changed, 40 insertions(+), 46 deletions(-) diff --git a/lua/plugins/configs/nvimtree.lua b/lua/plugins/configs/nvimtree.lua index ab77965..c4d4a3d 100644 --- a/lua/plugins/configs/nvimtree.lua +++ b/lua/plugins/configs/nvimtree.lua @@ -19,7 +19,7 @@ g.nvim_tree_indent_markers = 1 g.nvim_tree_ignore = { ".git", "node_modules", ".cache" } g.nvim_tree_quit_on_open = 0 -- closes tree when file's opened g.nvim_tree_root_folder_modifier = table.concat { ":t:gs?$?/..", string.rep(" ", 1000), "?:gs?^??" } --- +-- g.nvim_tree_show_icons = { folders = 1, -- folder_arrows= 1 @@ -52,8 +52,6 @@ g.nvim_tree_icons = { }, } - - require("nvim-tree").setup { lsp_diagnostics = false, disable_netrw = true, @@ -67,48 +65,44 @@ require("nvim-tree").setup { enable = true, update_cwd = true, }, - view = { - allow_resize = true, - side = 'left', - width = '25', - mappings = { - list = { - { key = { "", "o", "<2-LeftMouse>" }, cb = tree_cb "edit" }, - { key = { "<2-RightMouse>", "" }, cb = tree_cb "cd" }, - { key = "", cb = tree_cb "vsplit" }, - { key = "", cb = tree_cb "split" }, - { key = "", cb = tree_cb "tabnew" }, - { key = "<", cb = tree_cb "prev_sibling" }, - { key = ">", cb = tree_cb "next_sibling" }, - { key = "P", cb = tree_cb "parent_node" }, - { key = "", cb = tree_cb "close_node" }, - { key = "", cb = tree_cb "close_node" }, - { key = "", cb = tree_cb "preview" }, - { key = "K", cb = tree_cb "first_sibling" }, - { key = "J", cb = tree_cb "last_sibling" }, - { key = "I", cb = tree_cb "toggle_ignored" }, - { key = "H", cb = tree_cb "toggle_dotfiles" }, - { key = "R", cb = tree_cb "refresh" }, - { key = "a", cb = tree_cb "create" }, - { key = "d", cb = tree_cb "remove" }, - { key = "r", cb = tree_cb "rename" }, - { key = "", cb = tree_cb "full_rename" }, - { key = "x", cb = tree_cb "cut" }, - { key = "c", cb = tree_cb "copy" }, - { key = "p", cb = tree_cb "paste" }, - { key = "y", cb = tree_cb "copy_name" }, - { key = "Y", cb = tree_cb "copy_path" }, - { key = "gy", cb = tree_cb "copy_absolute_path" }, - { key = "[c", cb = tree_cb "prev_git_item" }, - { key = "}c", cb = tree_cb "next_git_item" }, - { key = "-", cb = tree_cb "dir_up" }, - { key = "q", cb = tree_cb "close" }, - { key = "g?", cb = tree_cb "toggle_help" }, + view = { + allow_resize = true, + side = "left", + width = "25", + mappings = { + list = { + { key = { "", "o", "<2-LeftMouse>" }, cb = tree_cb "edit" }, + { key = { "<2-RightMouse>", "" }, cb = tree_cb "cd" }, + { key = "", cb = tree_cb "vsplit" }, + { key = "", cb = tree_cb "split" }, + { key = "", cb = tree_cb "tabnew" }, + { key = "<", cb = tree_cb "prev_sibling" }, + { key = ">", cb = tree_cb "next_sibling" }, + { key = "P", cb = tree_cb "parent_node" }, + { key = "", cb = tree_cb "close_node" }, + { key = "", cb = tree_cb "close_node" }, + { key = "", cb = tree_cb "preview" }, + { key = "K", cb = tree_cb "first_sibling" }, + { key = "J", cb = tree_cb "last_sibling" }, + { key = "I", cb = tree_cb "toggle_ignored" }, + { key = "H", cb = tree_cb "toggle_dotfiles" }, + { key = "R", cb = tree_cb "refresh" }, + { key = "a", cb = tree_cb "create" }, + { key = "d", cb = tree_cb "remove" }, + { key = "r", cb = tree_cb "rename" }, + { key = "", cb = tree_cb "full_rename" }, + { key = "x", cb = tree_cb "cut" }, + { key = "c", cb = tree_cb "copy" }, + { key = "p", cb = tree_cb "paste" }, + { key = "y", cb = tree_cb "copy_name" }, + { key = "Y", cb = tree_cb "copy_path" }, + { key = "gy", cb = tree_cb "copy_absolute_path" }, + { key = "[c", cb = tree_cb "prev_git_item" }, + { key = "}c", cb = tree_cb "next_git_item" }, + { key = "-", cb = tree_cb "dir_up" }, + { key = "q", cb = tree_cb "close" }, + { key = "g?", cb = tree_cb "toggle_help" }, + }, }, - }, - }, + }, } - - - -