update config for NerdFont v3.2.1

This commit is contained in:
asep.komarudin 2024-04-14 17:27:46 +07:00
parent 3ca400d195
commit 5ddbe5b35e
5 changed files with 370 additions and 141 deletions

View file

@ -2,19 +2,45 @@ local status_ok, gitsigns = pcall(require, "gitsigns")
if not status_ok then if not status_ok then
return return
end end
local icons = require("user.icons")
gitsigns.setup { gitsigns.setup({
signs = { signs = {
add = { hl = "GitSignsAdd", text = "", numhl = "GitSignsAddNr", linehl = "GitSignsAddLn" }, add = {
change = { hl = "GitSignsChange", text = "", numhl = "GitSignsChangeNr", linehl = "GitSignsChangeLn" }, hl = "GitSignsAdd",
delete = { hl = "GitSignsDelete", text = "", numhl = "GitSignsDeleteNr", linehl = "GitSignsDeleteLn" }, text = icons.ui.BoldLineLeft,
topdelete = { hl = "GitSignsDelete", text = "", numhl = "GitSignsDeleteNr", linehl = "GitSignsDeleteLn" }, numhl = "GitSignsAddNr",
changedelete = { hl = "GitSignsChange", text = "", numhl = "GitSignsChangeNr", linehl = "GitSignsChangeLn" }, linehl = "GitSignsAddLn",
}, },
signcolumn = true, -- Toggle with `:Gitsigns toggle_signs` change = {
numhl = false, -- Toggle with `:Gitsigns toggle_numhl` hl = "GitSignsChange",
linehl = false, -- Toggle with `:Gitsigns toggle_linehl` text = icons.ui.BoldLineLeft,
word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff` numhl = "GitSignsChangeNr",
linehl = "GitSignsChangeLn",
},
delete = {
hl = "GitSignsDelete",
text = icons.ui.Triangle,
numhl = "GitSignsDeleteNr",
linehl = "GitSignsDeleteLn",
},
topdelete = {
hl = "GitSignsDelete",
text = icons.ui.Triangle,
numhl = "GitSignsDeleteNr",
linehl = "GitSignsDeleteLn",
},
changedelete = {
hl = "GitSignsChange",
text = icons.ui.BoldLineLeft,
numhl = "GitSignsChangeNr",
linehl = "GitSignsChangeLn",
},
},
signcolumn = true,
numhl = false,
linehl = false,
word_diff = false,
watch_gitdir = { watch_gitdir = {
interval = 1000, interval = 1000,
follow_files = true, follow_files = true,
@ -27,22 +53,18 @@ gitsigns.setup {
delay = 1000, delay = 1000,
ignore_whitespace = false, ignore_whitespace = false,
}, },
current_line_blame_formatter_opts = { current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>",
relative_time = false,
},
sign_priority = 6, sign_priority = 6,
update_debounce = 100,
status_formatter = nil, -- Use default status_formatter = nil, -- Use default
update_debounce = 200,
max_file_length = 40000, max_file_length = 40000,
preview_config = { preview_config = {
-- Options passed to nvim_open_win -- Options passed to nvim_open_win
border = "single", border = "rounded",
style = "minimal", style = "minimal",
relative = "cursor", relative = "cursor",
row = 0, row = 0,
col = 1, col = 1,
}, },
yadm = { yadm = { enable = false },
enable = false, })
},
}

View file

@ -69,18 +69,17 @@ return {
Bug = "", Bug = "",
Stacks = "", Stacks = "",
Scopes = "", Scopes = "",
Watches = "", Watches = "󰂥",
DebugConsole = "", DebugConsole = "",
Calendar = "", Calendar = "",
Check = "", Check = "",
ChevronRight = ">", ChevronRight = "",
ChevronShortDown = "", ChevronShortDown = "",
ChevronShortLeft = "", ChevronShortLeft = "",
ChevronShortRight = "", ChevronShortRight = "",
ChevronShortUp = "", ChevronShortUp = "",
Circle = "", Circle = "",
Dot = "", Close = "󰅖",
Close = "",
CloudDownload = "", CloudDownload = "",
Code = "", Code = "",
Comment = "", Comment = "",
@ -96,10 +95,10 @@ return {
File = "", File = "",
FileSymlink = "", FileSymlink = "",
Files = "", Files = "",
FindFile = "", FindFile = "󰈞",
FindText = "", FindText = "󰊄",
Fire = "", Fire = "",
-- Folder = "", -- Folder = "󰉋",
-- FolderOpen = "", -- FolderOpen = "",
Folder = "󰉋", Folder = "󰉋",
FolderOpen = "󰝰", FolderOpen = "󰝰",
@ -121,13 +120,13 @@ return {
Search = "", Search = "",
SignIn = "", SignIn = "",
SignOut = "", SignOut = "",
Tab = "", Tab = "󰌒",
Table = "", Table = "",
Target = "", Target = "󰀘",
Telescope = "", Telescope = "",
Text = "", Text = "",
Tree = "", Tree = "",
Triangle = "", Triangle = "󰐊",
TriangleShortArrowDown = "", TriangleShortArrowDown = "",
TriangleShortArrowLeft = "", TriangleShortArrowLeft = "",
TriangleShortArrowRight = "", TriangleShortArrowRight = "",
@ -149,7 +148,7 @@ return {
Trace = "", Trace = "",
}, },
misc = { misc = {
Robot = "", Robot = "󰚩",
Squirrel = "", Squirrel = "",
Tag = "", Tag = "",
Watch = "", Watch = "",

160
lua/user/icons_backup.lua Normal file
View file

@ -0,0 +1,160 @@
return {
kind = {
Array = "",
Boolean = "",
Class = "",
Color = "",
Constant = "",
Constructor = "",
Enum = "",
EnumMember = "",
Event = "",
Field = "",
File = "",
Folder = "󰉋",
Function = "",
Interface = "",
Key = "",
Keyword = "",
Method = "",
Module = "",
Namespace = "",
Null = "󰟢",
Number = "",
Object = "",
Operator = "",
Package = "",
Property = "",
Reference = "",
Snippet = "",
String = "",
Struct = "",
Text = "",
TypeParameter = "",
Unit = "",
Value = "",
Variable = "",
},
git = {
LineAdded = "",
LineModified = "",
LineRemoved = "",
FileDeleted = "",
FileIgnored = "",
FileRenamed = "",
FileStaged = "S",
FileUnmerged = "",
FileUnstaged = "",
FileUntracked = "U",
Diff = "",
Repo = "",
Octoface = "",
Branch = "",
},
ui = {
ArrowCircleDown = "",
ArrowCircleLeft = "",
ArrowCircleRight = "",
ArrowCircleUp = "",
BoldArrowDown = "",
BoldArrowLeft = "",
BoldArrowRight = "",
BoldArrowUp = "",
BoldClose = "",
BoldDividerLeft = "",
BoldDividerRight = "",
BoldLineLeft = "",
BookMark = "",
BoxChecked = "",
Bug = "",
Stacks = "",
Scopes = "",
Watches = "",
DebugConsole = "",
Calendar = "",
Check = "",
ChevronRight = ">",
ChevronShortDown = "",
ChevronShortLeft = "",
ChevronShortRight = "",
ChevronShortUp = "",
Circle = "",
Dot = "",
Close = "",
CloudDownload = "",
Code = "",
Comment = "",
Dashboard = "",
DividerLeft = "",
DividerRight = "",
DoubleChevronRight = "»",
Ellipsis = "",
-- EmptyFolder = "",
-- EmptyFolderOpen = "",
EmptyFolder = "󰉖",
EmptyFolderOpen = "󰷏",
File = "",
FileSymlink = "",
Files = "",
FindFile = "",
FindText = "",
Fire = "",
-- Folder = "",
-- FolderOpen = "",
Folder = "󰉋",
FolderOpen = "󰝰",
FolderSymlink = "",
Forward = "",
Gear = "",
History = "",
Lightbulb = "",
LineLeft = "",
LineMiddle = "",
List = "",
Lock = "",
NewFile = "",
Note = "",
Package = "",
Pencil = "󰏫",
Plus = "",
Project = "",
Search = "",
SignIn = "",
SignOut = "",
Tab = "",
Table = "",
Target = "",
Telescope = "",
Text = "",
Tree = "",
Triangle = "",
TriangleShortArrowDown = "",
TriangleShortArrowLeft = "",
TriangleShortArrowRight = "",
TriangleShortArrowUp = "",
Neovim = "",
},
diagnostics = {
BoldError = "",
Error = "",
BoldWarning = "",
Warning = "",
BoldInformation = "",
Information = "",
BoldQuestion = "",
Question = "",
BoldHint = "",
Hint = "󰌶",
Debug = "",
Trace = "",
},
misc = {
Robot = "",
Squirrel = "",
Tag = "",
Watch = "",
Smiley = "",
Package = "",
CircuitBoard = "",
},
}

View file

@ -10,15 +10,131 @@ end
local icons = require("user.icons") local icons = require("user.icons")
nvim_tree.setup({ nvim_tree.setup({
auto_reload_on_write = false,
disable_netrw = false,
hijack_cursor = false,
hijack_netrw = true,
hijack_unnamed_buffer_when_opening = false,
sort_by = "name",
root_dirs = {},
prefer_startup_root = false,
sync_root_with_cwd = true,
reload_on_bufenter = false,
respect_buf_cwd = false,
on_attach = "default",
select_prompts = false,
view = {
adaptive_size = false,
centralize_selection = true,
width = 30,
side = "left",
preserve_window_proportions = false,
number = false,
relativenumber = false,
signcolumn = "yes",
float = {
enable = false,
quit_on_focus_loss = true,
open_win_config = {
relative = "editor",
border = "rounded",
width = 30,
height = 30,
row = 1,
col = 1,
},
},
},
renderer = {
add_trailing = false,
group_empty = false,
highlight_git = true,
full_name = false,
highlight_opened_files = "none",
-- root_folder_label = ":t",
root_folder_label = false,
indent_width = 2,
indent_markers = {
enable = false,
inline_arrows = true,
icons = {
corner = "",
edge = "",
item = "",
none = " ",
},
},
icons = {
webdev_colors = true,
git_placement = "before",
padding = " ",
symlink_arrow = "",
show = {
file = true,
folder = true,
folder_arrow = true,
git = true,
},
glyphs = {
default = icons.ui.Text,
symlink = icons.ui.FileSymlink,
bookmark = icons.ui.BookMark,
folder = {
arrow_closed = icons.ui.TriangleShortArrowRight,
arrow_open = icons.ui.TriangleShortArrowDown,
default = icons.ui.Folder,
open = icons.ui.FolderOpen,
empty = icons.ui.EmptyFolder,
empty_open = icons.ui.EmptyFolderOpen,
symlink = icons.ui.FolderSymlink,
symlink_open = icons.ui.FolderOpen,
},
git = {
unstaged = icons.git.FileUnstaged,
staged = icons.git.FileStaged,
unmerged = icons.git.FileUnmerged,
renamed = icons.git.FileRenamed,
untracked = icons.git.FileUntracked,
deleted = icons.git.FileDeleted,
ignored = icons.git.FileIgnored,
},
},
},
special_files = { "Cargo.toml", "Makefile", "README.md", "readme.md" },
symlink_destination = true,
},
hijack_directories = {
enable = false,
auto_open = true,
},
update_focused_file = {
enable = true,
debounce_delay = 15,
update_root = true,
ignore_list = {},
},
diagnostics = {
enable = true,
show_on_dirs = false,
show_on_open_dirs = true,
debounce_delay = 50,
severity = {
min = vim.diagnostic.severity.HINT,
max = vim.diagnostic.severity.ERROR,
},
icons = {
hint = icons.diagnostics.BoldHint,
info = icons.diagnostics.BoldInformation,
warning = icons.diagnostics.BoldWarning,
error = icons.diagnostics.BoldError,
},
},
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" },
exclude = { exclude = {},
".gitignore",
".prettierignore",
},
}, },
filesystem_watchers = { filesystem_watchers = {
enable = true, enable = true,
@ -26,8 +142,8 @@ nvim_tree.setup({
ignore_dirs = {}, ignore_dirs = {},
}, },
git = { git = {
enable = true, -- false dulu karena muncul error enable = true,
ignore = false, -- true dulu karena muncul error ignore = false,
show_on_dirs = true, show_on_dirs = true,
show_on_open_dirs = true, show_on_open_dirs = true,
timeout = 200, timeout = 200,
@ -105,72 +221,4 @@ nvim_tree.setup({
cmd = nil, cmd = nil,
args = {}, args = {},
}, },
renderer = {
-- root_folder_modifier = ":t",
root_folder_label = false,
indent_markers = {
enable = true,
inline_arrows = true,
icons = {
corner = "",
edge = "",
item = "",
bottom = "",
none = " ",
},
},
icons = {
webdev_colors = true,
show = {
git = true,
folder = true,
file = true,
folder_arrow = true,
},
glyphs = {
default = icons.ui.Text,
symlink = icons.ui.FileSymlink,
folder = {
arrow_open = icons.ui.ChevronShortDown,
arrow_closed = icons.ui.ChevronShortRight,
default = icons.ui.Folder,
empty = icons.ui.EmptyFolder,
empty_open = icons.ui.EmptyFolderOpen,
open = icons.ui.FolderOpen,
symlink = icons.ui.FolderSymlink,
symlink_open = icons.ui.FolderSymlink,
},
git = {
deleted = icons.git.FileDeleted,
-- ignored = icons.git.FileIgnored,
-- ignored = "",
-- ignored = "",
-- ignored = "",
-- ignored = "",
ignored = "",
-- ignored = icons.git.FileUnstaged,
renamed = icons.git.FileRenamed,
staged = icons.git.FileStaged,
unmerged = icons.git.FileUnmerged,
unstaged = icons.git.FileUnstaged,
untracked = icons.git.FileUntracked,
},
},
},
},
diagnostics = {
enable = true,
show_on_dirs = true,
icons = {
hint = icons.diagnostics.BoldHint,
info = icons.diagnostics.BoldInformation,
warning = icons.diagnostics.BoldWarning,
error = icons.diagnostics.BoldError,
},
},
view = {
width = 30,
-- hide_root_folder = false,
side = "left",
},
}) })

View file

@ -12,19 +12,19 @@ local prettier_icon = ""
material_icon.setup({ material_icon.setup({
override = { override = {
["mjs"] = { ["mjs"] = {
icon = "󰌞", icon = "",
color = "#f2c55c", color = "#f2c55c",
cterm_color = "220", cterm_color = "220",
name = "Mjs", name = "Mjs",
}, },
["js"] = { ["js"] = {
icon = "󰌞", icon = "",
color = "#f2c55c", color = "#f2c55c",
cterm_color = "220", cterm_color = "220",
name = "javascript", name = "javascript",
}, },
["ts"] = { ["ts"] = {
icon = "󰛦", icon = "",
color = "#548af7", color = "#548af7",
cterm_color = "220", cterm_color = "220",
name = "ts", name = "ts",
@ -150,13 +150,13 @@ material_icon.setup({
name = "jpg", name = "jpg",
}, },
["csv"] = { ["csv"] = {
icon = "", icon = "󰈚",
color = "#57965c", color = "#57965c",
cterm_color = "220", cterm_color = "220",
name = "csv", name = "csv",
}, },
["sql"] = { ["sql"] = {
icon = "", icon = "󰆼",
color = "#b589ec", color = "#b589ec",
cterm_color = "220", cterm_color = "220",
name = "sqlfile", name = "sqlfile",
@ -174,7 +174,7 @@ material_icon.setup({
name = "README_file", name = "README_file",
}, },
["pdf"] = { ["pdf"] = {
icon = "", icon = "",
color = "#ef510b", color = "#ef510b",
cterm_color = "220", cterm_color = "220",
name = "pdffile", name = "pdffile",