summaryrefslogtreecommitdiffstats
path: root/lua/user/nvim-tree.lua
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2022-11-23 15:38:16 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2022-11-23 15:38:16 +0100
commit99630ae8233f8a2afb6a89016b24a354b0186a21 (patch)
tree01ccbb1e8843ce1dbc9383579575dc48eef60f2c /lua/user/nvim-tree.lua
parent904acb28247999214aefd33a0cd3ddcea99d7dc0 (diff)
downloadvim-99630ae8233f8a2afb6a89016b24a354b0186a21.zip
vim-99630ae8233f8a2afb6a89016b24a354b0186a21.tar.gz
plugins -> subdir core
Diffstat (limited to 'lua/user/nvim-tree.lua')
-rw-r--r--lua/user/nvim-tree.lua112
1 files changed, 0 insertions, 112 deletions
diff --git a/lua/user/nvim-tree.lua b/lua/user/nvim-tree.lua
deleted file mode 100644
index d94da10..0000000
--- a/lua/user/nvim-tree.lua
+++ /dev/null
@@ -1,112 +0,0 @@
--- following options are the default
--- each of these are documented in `:help nvim-tree.OPTION_NAME`
-
-local status_ok, nvim_tree = pcall(require, "nvim-tree")
-if not status_ok then
- return
-end
-
-local config_status_ok, nvim_tree_config = pcall(require, "nvim-tree.config")
-if not config_status_ok then
- return
-end
-
-local tree_cb = nvim_tree_config.nvim_tree_callback
-
-nvim_tree.setup {
- disable_netrw = true,
- hijack_netrw = true,
- open_on_setup = false,
- ignore_ft_on_setup = { },
- open_on_tab = false,
- hijack_cursor = false,
- update_cwd = true,
- -- update_to_buf_dir = {
- -- enable = true,
- -- auto_open = true,
- -- },
- renderer = {
- icons = {
- glyphs = {
- default = "",
- symlink = "",
- git = {
- unstaged = "",
- staged = "S",
- unmerged = "",
- renamed = "➜",
- deleted = "",
- untracked = "U",
- ignored = "◌",
- },
- folder = {
- default = "",
- open = "",
- empty = "",
- empty_open = "",
- symlink = "",
- },
- },
- },
- },
- diagnostics = {
- enable = true,
- icons = {
- hint = "",
- info = "",
- warning = "",
- error = "",
- },
- },
- update_focused_file = {
- enable = true,
- update_cwd = true,
- ignore_list = {},
- },
- system_open = {
- cmd = nil,
- args = {},
- },
- filters = {
- dotfiles = false,
- custom = {},
- },
- git = {
- enable = true,
- ignore = true,
- timeout = 500,
- },
- view = {
- width = 30,
- hide_root_folder = false,
- side = "left",
- -- auto_resize = true,
- mappings = {
- custom_only = false,
- list = { -- see https://github.com/kyazdani42/nvim-tree.lua#keybindings
- { key = { "l", "<CR>", "o" }, cb = tree_cb "edit" },
- { key = "t", action = "next_sibling"},
- { key = "s", action = "prev_sibling"},
- { key = ">", action = "next_git_item"},
- { key = "<", action = "prev_git_item"},
- },
- },
- number = false,
- relativenumber = false,
- },
- trash = {
- cmd = "trash",
- require_confirm = true,
- },
- -- quit_on_open = 0,
- -- git_hl = 1,
- -- disable_window_picker = 0,
- -- root_folder_modifier = ":t",
- -- show_icons = {
- -- git = 1,
- -- folders = 1,
- -- files = 1,
- -- folder_arrows = 1,
- -- tree_width = 30,
- -- },
-}