mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 13:30:41 +00:00
78cf3e97ad
this is not doable, can interfere with different repos
84 lines
1.6 KiB
Lua
84 lines
1.6 KiB
Lua
local present, nvimtree = pcall(require, "nvim-tree")
|
|
|
|
if not present then
|
|
return
|
|
end
|
|
|
|
-- globals must be set prior to requiring nvim-tree to function
|
|
local g = vim.g
|
|
|
|
g.nvim_tree_add_trailing = 0 -- append a trailing slash to folder names
|
|
g.nvim_tree_git_hl = 1
|
|
g.nvim_tree_highlight_opened_files = 0
|
|
|
|
g.nvim_tree_show_icons = {
|
|
folders = 1,
|
|
files = 1,
|
|
git = 1,
|
|
folder_arrows = 1,
|
|
}
|
|
|
|
g.nvim_tree_icons = {
|
|
default = "",
|
|
symlink = "",
|
|
git = {
|
|
deleted = "",
|
|
ignored = "◌",
|
|
renamed = "➜",
|
|
staged = "✓",
|
|
unmerged = "",
|
|
unstaged = "✗",
|
|
untracked = "★",
|
|
},
|
|
folder = {
|
|
default = "",
|
|
empty = "",
|
|
empty_open = "",
|
|
open = "",
|
|
symlink = "",
|
|
symlink_open = "",
|
|
arrow_open = "",
|
|
arrow_closed = "",
|
|
},
|
|
}
|
|
|
|
local options = {
|
|
filters = {
|
|
dotfiles = false,
|
|
},
|
|
disable_netrw = true,
|
|
hijack_netrw = true,
|
|
ignore_ft_on_setup = { "dashboard" },
|
|
open_on_tab = false,
|
|
hijack_cursor = true,
|
|
hijack_unnamed_buffer_when_opening = false,
|
|
update_cwd = true,
|
|
update_focused_file = {
|
|
enable = true,
|
|
update_cwd = false,
|
|
},
|
|
view = {
|
|
side = "left",
|
|
width = 25,
|
|
hide_root_folder = true,
|
|
},
|
|
git = {
|
|
enable = false,
|
|
ignore = true,
|
|
},
|
|
actions = {
|
|
open_file = {
|
|
resize_window = true,
|
|
},
|
|
},
|
|
renderer = {
|
|
indent_markers = {
|
|
enable = false,
|
|
},
|
|
},
|
|
}
|
|
|
|
-- check for any override
|
|
options = require("core.utils").load_override(options, "kyazdani42/nvim-tree.lua")
|
|
|
|
nvimtree.setup(options)
|