diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-12 21:16:46 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-12 21:16:46 +0200 |
commit | bbd8c1d59ca4249a9477aece9d80cf3405c764a6 (patch) | |
tree | 05139cb5e6a42d6e700e4dc440c5a57c27f164f9 /lua/config/nvim-tree.lua | |
parent | 82779fc7fbb42f5f97bf5840d3248ad84a63c095 (diff) |
fix: remove lua files
Diffstat (limited to 'lua/config/nvim-tree.lua')
-rw-r--r-- | lua/config/nvim-tree.lua | 136 |
1 files changed, 0 insertions, 136 deletions
diff --git a/lua/config/nvim-tree.lua b/lua/config/nvim-tree.lua deleted file mode 100644 index bae27b4..0000000 --- a/lua/config/nvim-tree.lua +++ /dev/null @@ -1,136 +0,0 @@ --- A file explorer. - -vim.g.nvim_tree_icons = { - default = "", - symlink = "", - git = { - unstaged = "", - staged = "S", - unmerged = "", - renamed = "➜", - deleted = "", - untracked = "U", - ignored = "◌", - }, - folder = { - default = "", - open = "", - empty = "", - empty_open = "", - symlink = "", - }, -} - -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 { - auto_reload_on_write = true, - disable_netrw = false, - hide_root_folder = false, - hijack_cursor = false, - hijack_netrw = true, - hijack_unnamed_buffer_when_opening = false, - ignore_buffer_on_setup = false, - open_on_setup = false, - open_on_tab = false, - sort_by = "name", - update_cwd = true, - view = { - width = 30, - height = 30, - side = "left", - preserve_window_proportions = false, - number = false, - relativenumber = false, - signcolumn = "yes", - mappings = { - custom_only = false, - list = { - { key = { "l", "<CR>", "o" }, cb = tree_cb "edit" }, - { key = "h", cb = tree_cb "close_node" }, - { key = "v", cb = tree_cb "vsplit" }, - }, - }, - }, - hijack_directories = { - enable = true, - auto_open = true, - }, - update_focused_file = { - enable = true, - update_cwd = true, - ignore_list = {}, - }, - ignore_ft_on_setup = { - "startify", - "dashboard", - "alpha", - }, - system_open = { - cmd = nil, - args = {}, - }, - diagnostics = { - enable = true, - show_on_dirs = false, - icons = { - hint = "", - info = "", - warning = "", - error = "", - }, - }, - filters = { - dotfiles = false, - custom = {}, - exclude = {}, - }, - git = { - enable = true, - ignore = true, - timeout = 400, - }, - actions = { - change_dir = { - enable = true, - global = false, - }, - open_file = { - quit_on_open = false, - resize_window = false, - window_picker = { - enable = true, - chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", - exclude = { - filetype = { "notify", "packer", "qf", "diff", "fugitive", "fugitiveblame" }, - buftype = { "nofile", "terminal", "help" }, - }, - }, - }, - }, - trash = { - cmd = "trash", - require_confirm = true, - }, - log = { - enable = false, - truncate = false, - types = { - all = false, - config = false, - copy_paste = false, - git = false, - profile = false, - }, - }, -} |