mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
update
This commit is contained in:
parent
b89074da6b
commit
b347310c93
1 changed files with 159 additions and 159 deletions
|
@ -5,167 +5,167 @@ vim.g.loaded_netrwPlugin = 1
|
||||||
vim.opt.termguicolors = true
|
vim.opt.termguicolors = true
|
||||||
local status_ok, nvim_tree = pcall(require, "nvim-tree")
|
local status_ok, nvim_tree = pcall(require, "nvim-tree")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local icons = require("user.icons")
|
local icons = require("user.icons")
|
||||||
nvim_tree.setup({
|
nvim_tree.setup({
|
||||||
filters = {
|
filters = {
|
||||||
dotfiles = false,
|
dotfiles = false,
|
||||||
git_clean = false,
|
git_clean = false,
|
||||||
no_buffer = false,
|
no_buffer = false,
|
||||||
custom = { "node_modules", "\\.cache", "\\.git" },
|
custom = { "node_modules", "\\.cache", "\\.git" },
|
||||||
exclude = {
|
exclude = {
|
||||||
".gitignore",
|
".gitignore",
|
||||||
".prettierignore",
|
".prettierignore",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
filesystem_watchers = {
|
filesystem_watchers = {
|
||||||
enable = true,
|
enable = true,
|
||||||
debounce_delay = 50,
|
debounce_delay = 50,
|
||||||
ignore_dirs = {},
|
ignore_dirs = {},
|
||||||
},
|
},
|
||||||
git = {
|
git = {
|
||||||
enable = true, -- false dulu karena muncul error
|
enable = true, -- false dulu karena muncul error
|
||||||
ignore = false, -- true dulu karena muncul error
|
ignore = false, -- true dulu karena muncul error
|
||||||
show_on_dirs = true,
|
show_on_dirs = true,
|
||||||
show_on_open_dirs = true,
|
show_on_open_dirs = true,
|
||||||
timeout = 200,
|
timeout = 200,
|
||||||
},
|
},
|
||||||
actions = {
|
actions = {
|
||||||
use_system_clipboard = true,
|
use_system_clipboard = true,
|
||||||
change_dir = {
|
change_dir = {
|
||||||
enable = true,
|
enable = true,
|
||||||
global = false,
|
global = false,
|
||||||
restrict_above_cwd = false,
|
restrict_above_cwd = false,
|
||||||
},
|
},
|
||||||
expand_all = {
|
expand_all = {
|
||||||
max_folder_discovery = 300,
|
max_folder_discovery = 300,
|
||||||
exclude = {},
|
exclude = {},
|
||||||
},
|
},
|
||||||
file_popup = {
|
file_popup = {
|
||||||
open_win_config = {
|
open_win_config = {
|
||||||
col = 1,
|
col = 1,
|
||||||
row = 1,
|
row = 1,
|
||||||
relative = "cursor",
|
relative = "cursor",
|
||||||
border = "shadow",
|
border = "shadow",
|
||||||
style = "minimal",
|
style = "minimal",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
open_file = {
|
open_file = {
|
||||||
quit_on_open = false,
|
quit_on_open = false,
|
||||||
resize_window = false,
|
resize_window = false,
|
||||||
window_picker = {
|
window_picker = {
|
||||||
enable = true,
|
enable = true,
|
||||||
picker = "default",
|
picker = "default",
|
||||||
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
|
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
|
||||||
exclude = {
|
exclude = {
|
||||||
filetype = { "notify", "lazy", "qf", "diff", "fugitive", "fugitiveblame" },
|
filetype = { "notify", "lazy", "qf", "diff", "fugitive", "fugitiveblame" },
|
||||||
buftype = { "nofile", "terminal", "help" },
|
buftype = { "nofile", "terminal", "help" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
remove_file = {
|
remove_file = {
|
||||||
close_window = true,
|
close_window = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
trash = {
|
trash = {
|
||||||
cmd = "trash",
|
cmd = "trash",
|
||||||
require_confirm = true,
|
require_confirm = true,
|
||||||
},
|
},
|
||||||
live_filter = {
|
live_filter = {
|
||||||
prefix = "[FILTER]: ",
|
prefix = "[FILTER]: ",
|
||||||
always_show_folders = true,
|
always_show_folders = true,
|
||||||
},
|
},
|
||||||
tab = {
|
tab = {
|
||||||
sync = {
|
sync = {
|
||||||
open = false,
|
open = false,
|
||||||
close = false,
|
close = false,
|
||||||
ignore = {},
|
ignore = {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
notify = {
|
notify = {
|
||||||
threshold = vim.log.levels.INFO,
|
threshold = vim.log.levels.INFO,
|
||||||
},
|
},
|
||||||
log = {
|
log = {
|
||||||
enable = false,
|
enable = false,
|
||||||
truncate = false,
|
truncate = false,
|
||||||
types = {
|
types = {
|
||||||
all = false,
|
all = false,
|
||||||
config = false,
|
config = false,
|
||||||
copy_paste = false,
|
copy_paste = false,
|
||||||
dev = false,
|
dev = false,
|
||||||
diagnostics = false,
|
diagnostics = false,
|
||||||
git = false,
|
git = false,
|
||||||
profile = false,
|
profile = false,
|
||||||
watcher = false,
|
watcher = false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
system_open = {
|
system_open = {
|
||||||
cmd = nil,
|
cmd = nil,
|
||||||
args = {},
|
args = {},
|
||||||
},
|
},
|
||||||
renderer = {
|
renderer = {
|
||||||
-- root_folder_modifier = ":t",
|
-- root_folder_modifier = ":t",
|
||||||
root_folder_label = false,
|
root_folder_label = false,
|
||||||
indent_markers = {
|
indent_markers = {
|
||||||
enable = false,
|
enable = false,
|
||||||
inline_arrows = true,
|
inline_arrows = true,
|
||||||
icons = {
|
icons = {
|
||||||
corner = "└",
|
corner = "└",
|
||||||
edge = "│",
|
edge = "│",
|
||||||
item = "│",
|
item = "│",
|
||||||
bottom = "─",
|
bottom = "─",
|
||||||
none = " ",
|
none = " ",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
icons = {
|
icons = {
|
||||||
webdev_colors = true,
|
webdev_colors = true,
|
||||||
show = {
|
show = {
|
||||||
git = true,
|
git = true,
|
||||||
folder = true,
|
folder = true,
|
||||||
file = true,
|
file = true,
|
||||||
folder_arrow = true,
|
folder_arrow = true,
|
||||||
},
|
},
|
||||||
glyphs = {
|
glyphs = {
|
||||||
default = icons.ui.Text,
|
default = icons.ui.Text,
|
||||||
symlink = icons.ui.FileSymlink,
|
symlink = icons.ui.FileSymlink,
|
||||||
folder = {
|
folder = {
|
||||||
arrow_open = icons.ui.ChevronShortDown,
|
arrow_open = icons.ui.ChevronShortDown,
|
||||||
arrow_closed = icons.ui.ChevronShortRight,
|
arrow_closed = icons.ui.ChevronShortRight,
|
||||||
default = icons.ui.Folder,
|
default = icons.ui.Folder,
|
||||||
empty = icons.ui.EmptyFolder,
|
empty = icons.ui.EmptyFolder,
|
||||||
empty_open = icons.ui.EmptyFolderOpen,
|
empty_open = icons.ui.EmptyFolderOpen,
|
||||||
open = icons.ui.FolderOpen,
|
open = icons.ui.FolderOpen,
|
||||||
symlink = icons.ui.FolderSymlink,
|
symlink = icons.ui.FolderSymlink,
|
||||||
symlink_open = icons.ui.FolderSymlink,
|
symlink_open = icons.ui.FolderSymlink,
|
||||||
},
|
},
|
||||||
git = {
|
git = {
|
||||||
deleted = icons.git.FileDeleted,
|
deleted = icons.git.FileDeleted,
|
||||||
-- ignored = icons.git.FileIgnored,
|
-- ignored = icons.git.FileIgnored,
|
||||||
ignored = "",
|
ignored = "",
|
||||||
renamed = icons.git.FileRenamed,
|
renamed = icons.git.FileRenamed,
|
||||||
staged = icons.git.FileStaged,
|
staged = icons.git.FileStaged,
|
||||||
unmerged = icons.git.FileUnmerged,
|
unmerged = icons.git.FileUnmerged,
|
||||||
unstaged = icons.git.FileUnstaged,
|
unstaged = icons.git.FileUnstaged,
|
||||||
untracked = icons.git.FileUntracked,
|
untracked = icons.git.FileUntracked,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
enable = true,
|
enable = true,
|
||||||
show_on_dirs = true,
|
show_on_dirs = true,
|
||||||
icons = {
|
icons = {
|
||||||
hint = icons.diagnostics.BoldHint,
|
hint = icons.diagnostics.BoldHint,
|
||||||
info = icons.diagnostics.BoldInformation,
|
info = icons.diagnostics.BoldInformation,
|
||||||
warning = icons.diagnostics.BoldWarning,
|
warning = icons.diagnostics.BoldWarning,
|
||||||
error = icons.diagnostics.BoldError,
|
error = icons.diagnostics.BoldError,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
view = {
|
view = {
|
||||||
width = 30,
|
width = 30,
|
||||||
-- hide_root_folder = false,
|
-- hide_root_folder = false,
|
||||||
side = "left",
|
side = "left",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue