summaryrefslogtreecommitdiff
path: root/lua/lvim/core/nvimtree.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-05-03 08:55:15 +0200
committerkylo252 <[email protected]>2022-05-03 08:55:15 +0200
commite264bff7e820ba891cd16892de52236d62f7821f (patch)
tree4262530ac7738ebdec0fa6abab560610789b72f3 /lua/lvim/core/nvimtree.lua
parentad5eeaf6ad12cf05e4b936690bf78bc53827b12c (diff)
parentcfa702e6fe2f875a2c674182fe2f86e8f613aa1e (diff)
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to 'lua/lvim/core/nvimtree.lua')
-rw-r--r--lua/lvim/core/nvimtree.lua65
1 files changed, 48 insertions, 17 deletions
diff --git a/lua/lvim/core/nvimtree.lua b/lua/lvim/core/nvimtree.lua
index 385708ed..e4d28220 100644
--- a/lua/lvim/core/nvimtree.lua
+++ b/lua/lvim/core/nvimtree.lua
@@ -2,6 +2,7 @@ local M = {}
local Log = require "lvim.core.log"
function M.config()
+ local vim_show_icons = lvim.use_icons and 1 or 0
lvim.builtin.nvimtree = {
active = true,
on_config_done = nil,
@@ -9,6 +10,8 @@ function M.config()
disable_netrw = true,
hijack_netrw = true,
open_on_setup = false,
+ open_on_setup_file = false,
+ sort_by = "name",
ignore_buffer_on_setup = false,
ignore_ft_on_setup = {
"startify",
@@ -21,16 +24,12 @@ function M.config()
enable = true,
auto_open = true,
},
- update_to_buf_dir = {
- enable = true,
- auto_open = true,
- },
- auto_close = false,
open_on_tab = false,
hijack_cursor = false,
update_cwd = false,
diagnostics = {
- enable = true,
+ enable = lvim.use_icons,
+ show_on_dirs = false,
icons = {
hint = "",
info = "",
@@ -57,7 +56,7 @@ function M.config()
height = 30,
hide_root_folder = false,
side = "left",
- auto_resize = false,
+ preserve_window_proportions = false,
mappings = {
custom_only = false,
list = {},
@@ -66,34 +65,66 @@ function M.config()
relativenumber = false,
signcolumn = "yes",
},
+ renderer = {
+ indent_markers = {
+ enable = false,
+ icons = {
+ corner = "└ ",
+ edge = "│ ",
+ none = " ",
+ },
+ },
+ icons = {
+ webdev_colors = lvim.use_icons,
+ },
+ },
filters = {
dotfiles = false,
custom = { "node_modules", "\\.cache" },
+ exclude = {},
},
trash = {
cmd = "trash",
require_confirm = true,
},
+ log = {
+ enable = false,
+ truncate = false,
+ types = {
+ all = false,
+ config = false,
+ copy_paste = false,
+ diagnostics = false,
+ git = false,
+ profile = false,
+ },
+ },
actions = {
+ use_system_clipboard = true,
change_dir = {
+ enable = true,
global = false,
+ restrict_above_cwd = false,
},
open_file = {
- resize_window = true,
quit_on_open = false,
- },
- window_picker = {
- enable = false,
- chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
- exclude = {},
+ resize_window = false,
+ window_picker = {
+ enable = true,
+ chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
+ exclude = {
+ filetype = { "notify", "packer", "qf", "diff", "fugitive", "fugitiveblame" },
+ buftype = { "nofile", "terminal", "help" },
+ },
+ },
},
},
},
show_icons = {
- git = 1,
- folders = 1,
- files = 1,
- folder_arrows = 1,
+ git = vim_show_icons,
+ folders = vim_show_icons,
+ files = vim_show_icons,
+ folder_arrows = vim_show_icons,
},
git_hl = 1,
root_folder_modifier = ":t",