103 lines
2.9 KiB
Lua
103 lines
2.9 KiB
Lua
local vars = require('user.config.vars')
|
|
|
|
return {
|
|
disable_netrw = true,
|
|
hijack_cursor = true,
|
|
respect_buf_cwd = true,
|
|
sync_root_with_cwd = true,
|
|
hijack_directories = { enable = false },
|
|
diagnostics = {
|
|
enable = true,
|
|
icons = {
|
|
hint = vars.icons.notify.hint,
|
|
info = vars.icons.notify.info,
|
|
warning = vars.icons.notify.warn,
|
|
error = vars.icons.notify.error,
|
|
},
|
|
},
|
|
update_focused_file = { enable = true, update_root = true },
|
|
system_open = {
|
|
cmd = vim.loop.os_uname().sysname == 'Darwin' and 'open' or 'xdg-open',
|
|
},
|
|
filters = {
|
|
custom = {
|
|
'^\\.bzr$',
|
|
'^\\.git$',
|
|
'^\\.hg$',
|
|
'^\\.pijul$',
|
|
'^\\.svn$',
|
|
'^_dars$',
|
|
'^node_modules$',
|
|
'^bazel-out$',
|
|
'^bazel-bin$',
|
|
'^bazel-testlogs$',
|
|
'^plz-out$',
|
|
'^\\.plz-cache$',
|
|
'^\\.plz-http-cache$',
|
|
},
|
|
},
|
|
git = { ignore = false, timeout = 500 },
|
|
view = { width = 35, side = 'left' },
|
|
renderer = {
|
|
highlight_git = true,
|
|
indent_markers = { enable = true },
|
|
icons = {
|
|
symlink_arrow = ' ➛ ',
|
|
glyphs = {
|
|
default = '',
|
|
symlink = '',
|
|
bookmark = '',
|
|
modified = '●',
|
|
folder = {
|
|
arrow_closed = '',
|
|
arrow_open = '',
|
|
default = '',
|
|
open = '',
|
|
empty = '',
|
|
empty_open = '',
|
|
symlink = '',
|
|
symlink_open = '',
|
|
},
|
|
git = {
|
|
unstaged = '',
|
|
staged = '',
|
|
unmerged = '',
|
|
renamed = '',
|
|
untracked = '',
|
|
deleted = '',
|
|
ignored = '',
|
|
},
|
|
},
|
|
},
|
|
special_files = { 'Cargo.toml', 'Makefile', 'README.md', 'package.json' },
|
|
},
|
|
actions = {
|
|
file_popup = {
|
|
open_win_config = {
|
|
border = vars.border,
|
|
},
|
|
},
|
|
open_file = {
|
|
resize_window = false,
|
|
window_picker = {
|
|
exclude = {
|
|
filetype = {
|
|
'alpha',
|
|
'lazy',
|
|
'aerial',
|
|
'OverseerForm',
|
|
'TelescopePrompt',
|
|
'notify',
|
|
'undotree',
|
|
'Trouble',
|
|
'NvimTree',
|
|
'diff',
|
|
'qf',
|
|
},
|
|
buftype = { 'terminal', 'nofile', 'help' },
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|