diff --git a/lazy-lock.json b/lazy-lock.json index 4ef74f3..1f6e586 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -21,7 +21,6 @@ "mason-lspconfig.nvim": { "branch": "main", "commit": "2ba17cecfde8b8c7c7c287909a1e4de895223df6" }, "mason-null-ls.nvim": { "branch": "main", "commit": "2b8433f76598397fcc97318d410e0c4f7a4bea6a" }, "mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" }, - "mini.indentscope": { "branch": "main", "commit": "93a515fe0f38165a0d3c0f8fcae459294608851f" }, "noice.nvim": { "branch": "main", "commit": "0cbe3f88d038320bdbda3c4c5c95f43a13c3aa12" }, "none-ls-extras.nvim": { "branch": "main", "commit": "f0746bf4f1a21d6e1d2002f671fb9b46d2146de7" }, "none-ls.nvim": { "branch": "main", "commit": "09a7c58e9283dda582d9805f6b182b5b9f137ec7" }, @@ -41,13 +40,13 @@ "nvim-ts-rainbow2": { "branch": "master", "commit": "b3120cd5ae9ca524af9cb602f41e12e301fa985f" }, "nvim-ufo": { "branch": "main", "commit": "a5390706f510d39951dd581f6d2a972741b3fa26" }, "nvim-web-devicons": { "branch": "master", "commit": "a55b801b7ef5719ca25692c3a0a5447fdfb692ed" }, + "onedark.nvim": { "branch": "master", "commit": "1230aaf2a427b2c5b73aba6e4a9a5881d3e69429" }, "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" }, "promise-async": { "branch": "main", "commit": "38a4575da9497326badd3995e768b4ccf0bb153e" }, "smart-splits.nvim": { "branch": "master", "commit": "f6fcb79527872e9330c554915af2ca511c388390" }, "statuscol.nvim": { "branch": "main", "commit": "d954893262a57a92e46edd87de67e2b3fe72305e" }, "telescope.nvim": { "branch": "master", "commit": "5a701e99906961218b55d7ad6c2a998f066c6fe0" }, "toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" }, - "tokyonight.nvim": { "branch": "main", "commit": "67c6050e1ca41260c919236a098ba278472c7520" }, "vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" }, "vim-startuptime": { "branch": "master", "commit": "97a88e688482a09c3c4b777d07b509b328a5ec29" }, "vim-visual-multi": { "branch": "master", "commit": "1c9207b28c8898ab01b54e6d6b61b0b820a814bc" }, diff --git a/lua/custom/autocmd.lua b/lua/custom/autocmd.lua index 05fff69..dd09e3d 100644 --- a/lua/custom/autocmd.lua +++ b/lua/custom/autocmd.lua @@ -1,32 +1,33 @@ local transparent_mode = require("core.config").transparent_mode if transparent_mode ~= nil then - if transparent_mode == 1 then - vim.cmd("TransparentDisable") - vim.cmd("TransparentEnable") - end + if transparent_mode == 1 then + vim.cmd("TransparentDisable") + vim.cmd("TransparentEnable") + end end -- get folder name from current directory local _get_folder_name = function() - local str = vim.fn.fnamemodify(vim.fn.getcwd(), ":t") - return " " .. str:lower():gsub("^%l", string.upper) .. " " + local str = vim.fn.fnamemodify(vim.fn.getcwd(), ":t") + return " " .. str:lower():gsub("^%l", string.upper) .. " " end local term_program = vim.fn.getenv("TERM_PROGRAM") if term_program == "WezTerm" then - -- vim.cmd('silent !wezterm cli set-tab-title "' .. _get_folder_name() .. '"') - -- create autocmd on insertEnter - vim.api.nvim_create_autocmd("BufRead", { - group = vim.api.nvim_create_augroup("BufRead", { clear = true }), - command = 'silent !wezterm cli set-tab-title "' .. _get_folder_name() .. '"', - desc = "Set Folder Name", - }) + -- vim.cmd('silent !wezterm cli set-tab-title "' .. _get_folder_name() .. '"') + -- create autocmd on insertEnter + vim.api.nvim_create_autocmd("BufRead", { + group = vim.api.nvim_create_augroup("BufRead", { clear = true }), + command = 'silent !wezterm cli set-tab-title "' .. _get_folder_name() .. '"', + desc = "Set Folder Name", + }) end vim.api.nvim_create_autocmd("ExitPre", { - group = vim.api.nvim_create_augroup("Exit", { clear = true }), - command = "set guicursor=n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor,sm:block-blinkwait175-blinkoff150-blinkon175,a:ver90", - desc = "Set cursor back to beam when leaving Neovim.", + group = vim.api.nvim_create_augroup("Exit", { clear = true }), + command = + "set guicursor=n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor,sm:block-blinkwait175-blinkoff150-blinkon175,a:ver90", + desc = "Set cursor back to beam when leaving Neovim.", }) -- config for vim-visual-multi color selection diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index d8764c7..08a6749 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -1,153 +1,153 @@ local icons = require("user.icons") return { - --- masukan plugin tambahan disini - -- { - -- "folke/trouble.nvim", - -- event = "BufRead", - -- cmd = { "TroubleToggle", "Trouble" }, - -- opts = { use_diagnostic_signs = true }, - -- keys = { - -- { - -- "xx", - -- "TroubleToggle document_diagnostics", - -- desc = "Document Diagnostics (Trouble)", - -- }, - -- { - -- "xX", - -- "TroubleToggle workspace_diagnostics", - -- desc = "Workspace Diagnostics (Trouble)", - -- }, - -- }, - -- }, - -- { - -- "echasnovski/mini.indentscope", - -- version = false, -- wait till new 0.7.0 release to put it back on semver - -- event = "BufReadPre", - -- opts = { - -- -- symbol = "▏", - -- -- symbol = "│", - -- symbol = icons.ui.LineMiddle, - -- options = { try_as_border = true }, - -- }, - -- config = function(_, opts) - -- vim.api.nvim_create_autocmd("FileType", { - -- pattern = { "help", "alpha", "dashboard", "NvimTree", "Trouble", "lazy", "mason" }, - -- callback = function() - -- vim.b.miniindentscope_disable = true - -- end, - -- }) - -- require("mini.indentscope").setup(opts) - -- end, - -- }, - { - "hrsh7th/cmp-nvim-lua", - enabled = false, - }, - -- { - -- "gbprod/yanky.nvim", - -- event = "BufReadPre", - -- config = function() - -- require("user.yanky") - -- end, - -- }, - -- { - -- "is0n/jaq-nvim", - -- event = "BufRead", - -- config = function() - -- require("user.jaq") - -- end, - -- }, - -- better todo coloring and icon - -- { - -- "folke/todo-comments.nvim", - -- event = { "BufReadPost", "BufNewFile" }, - -- config = function() - -- require("todo-comments").setup() - -- end, - -- }, - -- mini scrollview - -- { - -- "karb94/neoscroll.nvim", - -- event = "BufRead", - -- config = function() - -- require("user.neoscroll") - -- end, - -- }, + --- masukan plugin tambahan disini + -- { + -- "folke/trouble.nvim", + -- event = "BufRead", + -- cmd = { "TroubleToggle", "Trouble" }, + -- opts = { use_diagnostic_signs = true }, + -- keys = { + -- { + -- "xx", + -- "TroubleToggle document_diagnostics", + -- desc = "Document Diagnostics (Trouble)", + -- }, + -- { + -- "xX", + -- "TroubleToggle workspace_diagnostics", + -- desc = "Workspace Diagnostics (Trouble)", + -- }, + -- }, + -- }, + -- { + -- "echasnovski/mini.indentscope", + -- version = false, -- wait till new 0.7.0 release to put it back on semver + -- event = "BufReadPre", + -- opts = { + -- -- symbol = "▏", + -- -- symbol = "│", + -- symbol = icons.ui.LineMiddle, + -- options = { try_as_border = true }, + -- }, + -- config = function(_, opts) + -- vim.api.nvim_create_autocmd("FileType", { + -- pattern = { "help", "alpha", "dashboard", "NvimTree", "Trouble", "lazy", "mason" }, + -- callback = function() + -- vim.b.miniindentscope_disable = true + -- end, + -- }) + -- require("mini.indentscope").setup(opts) + -- end, + -- }, + { + "hrsh7th/cmp-nvim-lua", + enabled = false, + }, + -- { + -- "gbprod/yanky.nvim", + -- event = "BufReadPre", + -- config = function() + -- require("user.yanky") + -- end, + -- }, + -- { + -- "is0n/jaq-nvim", + -- event = "BufRead", + -- config = function() + -- require("user.jaq") + -- end, + -- }, + -- better todo coloring and icon + -- { + -- "folke/todo-comments.nvim", + -- event = { "BufReadPost", "BufNewFile" }, + -- config = function() + -- require("todo-comments").setup() + -- end, + -- }, + -- mini scrollview + -- { + -- "karb94/neoscroll.nvim", + -- event = "BufRead", + -- config = function() + -- require("user.neoscroll") + -- end, + -- }, - -- { "ahmedkhalf/project.nvim", commit = "628de7e433dd503e782831fe150bb750e56e55d6", event = "VeryLazy" }, -- - -- additional plugins - -- makes some plugins dot-repeatable like leap - -- { "tpope/vim-repeat", event = "VeryLazy" }, - -- better diagnostics list and others - -- for markdown preview - -- make sure already install npm and yarn - -- { - -- "iamcco/markdown-preview.nvim", - -- event = "VeryLazy", - -- build = "cd app && npm install", - -- init = function() - -- vim.g.mkdp_filetypes = { "markdown" } - -- end, - -- ft = { "markdown" }, - -- cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" }, - -- }, - -- for codeGPT - -- { - -- "jackMort/ChatGPT.nvim", - -- dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim" }, - -- lazy = true, - -- event = "VeryLazy", - -- -- opts = function() - -- -- require("user.chat_gpt") - -- -- end, - -- }, - -- indent detection - -- { - -- "Darazaki/indent-o-matic", - -- event = "VeryLazy", - -- opt = true, - -- cmd = { "IndentOMatic" }, - -- config = function() - -- require("user.indent-o-matic") - -- end, - -- }, - -- Khusus Projek laravel baru di buka - -- { - -- "adalessa/laravel.nvim", - -- dependencies = { - -- "nvim-telescope/telescope.nvim", - -- }, - -- cmd = { "Sail", "Artisan", "Composer" }, - -- keys = { - -- { "pa", ":Artisan" }, - -- }, - -- config = function() - -- require("laravel").setup() - -- require("telescope").load_extension("laravel") - -- end, - -- }, - -- -- - -- { - -- "barrett-ruth/live-server.nvim", - -- build = "yarn global add live-server", - -- config = true, - -- init = function() - -- require("live-server").setup({ - -- -- Arguments passed to live-server via `vim.fn.jobstart()` - -- -- Run `live-server --help` to see list of available options - -- -- For example, to use port 7000 and browser firefox: - -- args = { "--port=7000", "--browser=firefox" }, - -- --args = {}, - -- }) - -- end, - -- }, - -- for install lsp tidak support mason - -- { - -- "williamboman/nvim-lsp-installer", - -- event = "BufRead", - -- lazy = true, - -- config = function() - -- require("user.lsp.config") - -- end, - -- }, + -- { "ahmedkhalf/project.nvim", commit = "628de7e433dd503e782831fe150bb750e56e55d6", event = "VeryLazy" }, -- + -- additional plugins + -- makes some plugins dot-repeatable like leap + -- { "tpope/vim-repeat", event = "VeryLazy" }, + -- better diagnostics list and others + -- for markdown preview + -- make sure already install npm and yarn + -- { + -- "iamcco/markdown-preview.nvim", + -- event = "VeryLazy", + -- build = "cd app && npm install", + -- init = function() + -- vim.g.mkdp_filetypes = { "markdown" } + -- end, + -- ft = { "markdown" }, + -- cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" }, + -- }, + -- for codeGPT + -- { + -- "jackMort/ChatGPT.nvim", + -- dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim" }, + -- lazy = true, + -- event = "VeryLazy", + -- -- opts = function() + -- -- require("user.chat_gpt") + -- -- end, + -- }, + -- indent detection + -- { + -- "Darazaki/indent-o-matic", + -- event = "VeryLazy", + -- opt = true, + -- cmd = { "IndentOMatic" }, + -- config = function() + -- require("user.indent-o-matic") + -- end, + -- }, + -- Khusus Projek laravel baru di buka + -- { + -- "adalessa/laravel.nvim", + -- dependencies = { + -- "nvim-telescope/telescope.nvim", + -- }, + -- cmd = { "Sail", "Artisan", "Composer" }, + -- keys = { + -- { "pa", ":Artisan" }, + -- }, + -- config = function() + -- require("laravel").setup() + -- require("telescope").load_extension("laravel") + -- end, + -- }, + -- -- + -- { + -- "barrett-ruth/live-server.nvim", + -- build = "yarn global add live-server", + -- config = true, + -- init = function() + -- require("live-server").setup({ + -- -- Arguments passed to live-server via `vim.fn.jobstart()` + -- -- Run `live-server --help` to see list of available options + -- -- For example, to use port 7000 and browser firefox: + -- args = { "--port=7000", "--browser=firefox" }, + -- --args = {}, + -- }) + -- end, + -- }, + -- for install lsp tidak support mason + -- { + -- "williamboman/nvim-lsp-installer", + -- event = "BufRead", + -- lazy = true, + -- config = function() + -- require("user.lsp.config") + -- end, + -- }, } diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua index c95a2f2..1657469 100644 --- a/lua/plugins/colorscheme.lua +++ b/lua/plugins/colorscheme.lua @@ -14,522 +14,522 @@ local material_style = "oceanic" local onedark_style = "dark" _G.switch = function(param, case_table) - local case = case_table[param] - if case then - return case() - end - local def = case_table["default"] - return def and def() or nil + local case = case_table[param] + if case then + return case() + end + local def = case_table["default"] + return def and def() or nil end local data_exists, config = pcall(require, "core.config") if data_exists then - if config.colorscheme ~= nil then - local color = config.colorscheme - switch(color, { - ["tokyonight"] = function() - gruvbox = false - tokyonight = true - end, - ["tokyonight-night"] = function() - gruvbox = false - tokyonight = true - end, - ["tokyonight-storm"] = function() - gruvbox = false - tokyonight = true - end, - ["tokyonight-day"] = function() - gruvbox = false - tokyonight = true - end, - ["tokyonight-moon"] = function() - gruvbox = false - tokyonight = true - end, - ["sonokai"] = function() - gruvbox = false - sonokai = true - sonokai_style = "default" - end, - ["sonokai_atlantis"] = function() - gruvbox = false - sonokai = true - sonokai_style = "atlantis" - end, - ["sonokai_andromeda"] = function() - gruvbox = false - sonokai = true - sonokai_style = "andromeda" - end, - ["sonokai_shusia"] = function() - gruvbox = false - sonokai = true - sonokai_style = "shusia" - end, - ["sonokai_maia"] = function() - gruvbox = false - sonokai = true - sonokai_style = "maia" - end, - ["sonokai_espresso"] = function() - gruvbox = false - sonokai = true - sonokai_style = "espresso" - end, - ["material"] = function() - gruvbox = false - material = true - end, - ["material_deepocean"] = function() - gruvbox = false - material = true - material_style = "deep ocean" - end, - ["material_palenight"] = function() - gruvbox = false - material = true - material_style = "palenight" - end, - ["material_lighter"] = function() - gruvbox = false - material = true - material_style = "lighter" - end, - ["material_darker"] = function() - gruvbox = false - material = true - material_style = "darker" - end, - ["onedark"] = function() - gruvbox = false - onedark = true - end, - ["onedark_darker"] = function() - gruvbox = false - onedark = true - onedark_style = "darker" - end, - ["onedark_cool"] = function() - gruvbox = false - onedark = true - onedark_style = "cool" - end, - ["onedark_deep"] = function() - gruvbox = false - onedark = true - onedark_style = "deep" - end, - ["onedark_warm"] = function() - gruvbox = false - onedark = true - onedark_style = "warm" - end, - ["onedark_warmer"] = function() - gruvbox = false - onedark = true - onedark_style = "warmer" - end, - ["onedark_light"] = function() - gruvbox = false - onedark = true - onedark_style = "light" - end, - ["lunar"] = function() - gruvbox = false - lunar = true - end, - ["nord"] = function() - gruvbox = false - nord = true - end, - ["catppuccin"] = function() - gruvbox = false - catppuccin = true - end, - ["catppuccin-latte"] = function() - gruvbox = false - catppuccin = true - end, - ["catppuccin-frappe"] = function() - gruvbox = false - catppuccin = true - end, - ["catppuccin-macchiato"] = function() - gruvbox = false - catppuccin = true - end, - ["catppuccin-mocha"] = function() - gruvbox = false - catppuccin = true - end, - ["dracula"] = function() - gruvbox = false - dracula = true - end, - ["nightfox"] = function() - gruvbox = false - nightfox = true - end, - ["dayfox"] = function() - gruvbox = false - nightfox = true - end, - ["dawnfox"] = function() - gruvbox = false - nightfox = true - end, - ["duskfox"] = function() - gruvbox = false - nightfox = true - end, - ["nordfox"] = function() - gruvbox = false - nightfox = true - end, - ["terafox"] = function() - gruvbox = false - nightfox = true - end, - ["carbonfox"] = function() - gruvbox = false - nightfox = true - end, - ["gruvbox-baby"] = function() - gruvbox = true - end, - default = function() - gruvbox = true - end, - }) - end + if config.colorscheme ~= nil then + local color = config.colorscheme + switch(color, { + ["tokyonight"] = function() + gruvbox = false + tokyonight = true + end, + ["tokyonight-night"] = function() + gruvbox = false + tokyonight = true + end, + ["tokyonight-storm"] = function() + gruvbox = false + tokyonight = true + end, + ["tokyonight-day"] = function() + gruvbox = false + tokyonight = true + end, + ["tokyonight-moon"] = function() + gruvbox = false + tokyonight = true + end, + ["sonokai"] = function() + gruvbox = false + sonokai = true + sonokai_style = "default" + end, + ["sonokai_atlantis"] = function() + gruvbox = false + sonokai = true + sonokai_style = "atlantis" + end, + ["sonokai_andromeda"] = function() + gruvbox = false + sonokai = true + sonokai_style = "andromeda" + end, + ["sonokai_shusia"] = function() + gruvbox = false + sonokai = true + sonokai_style = "shusia" + end, + ["sonokai_maia"] = function() + gruvbox = false + sonokai = true + sonokai_style = "maia" + end, + ["sonokai_espresso"] = function() + gruvbox = false + sonokai = true + sonokai_style = "espresso" + end, + ["material"] = function() + gruvbox = false + material = true + end, + ["material_deepocean"] = function() + gruvbox = false + material = true + material_style = "deep ocean" + end, + ["material_palenight"] = function() + gruvbox = false + material = true + material_style = "palenight" + end, + ["material_lighter"] = function() + gruvbox = false + material = true + material_style = "lighter" + end, + ["material_darker"] = function() + gruvbox = false + material = true + material_style = "darker" + end, + ["onedark"] = function() + gruvbox = false + onedark = true + end, + ["onedark_darker"] = function() + gruvbox = false + onedark = true + onedark_style = "darker" + end, + ["onedark_cool"] = function() + gruvbox = false + onedark = true + onedark_style = "cool" + end, + ["onedark_deep"] = function() + gruvbox = false + onedark = true + onedark_style = "deep" + end, + ["onedark_warm"] = function() + gruvbox = false + onedark = true + onedark_style = "warm" + end, + ["onedark_warmer"] = function() + gruvbox = false + onedark = true + onedark_style = "warmer" + end, + ["onedark_light"] = function() + gruvbox = false + onedark = true + onedark_style = "light" + end, + ["lunar"] = function() + gruvbox = false + lunar = true + end, + ["nord"] = function() + gruvbox = false + nord = true + end, + ["catppuccin"] = function() + gruvbox = false + catppuccin = true + end, + ["catppuccin-latte"] = function() + gruvbox = false + catppuccin = true + end, + ["catppuccin-frappe"] = function() + gruvbox = false + catppuccin = true + end, + ["catppuccin-macchiato"] = function() + gruvbox = false + catppuccin = true + end, + ["catppuccin-mocha"] = function() + gruvbox = false + catppuccin = true + end, + ["dracula"] = function() + gruvbox = false + dracula = true + end, + ["nightfox"] = function() + gruvbox = false + nightfox = true + end, + ["dayfox"] = function() + gruvbox = false + nightfox = true + end, + ["dawnfox"] = function() + gruvbox = false + nightfox = true + end, + ["duskfox"] = function() + gruvbox = false + nightfox = true + end, + ["nordfox"] = function() + gruvbox = false + nightfox = true + end, + ["terafox"] = function() + gruvbox = false + nightfox = true + end, + ["carbonfox"] = function() + gruvbox = false + nightfox = true + end, + ["gruvbox-baby"] = function() + gruvbox = true + end, + default = function() + gruvbox = true + end, + }) + end end local transparent = false local transparent_mode = config.transparent_mode if transparent_mode ~= nil then - if transparent_mode == 1 then - transparent = true - end + if transparent_mode == 1 then + transparent = true + end end return { - -- color scheme - { - "luisiacc/gruvbox-baby", - lazy = true, - enabled = gruvbox, - config = function() - local colors = require("gruvbox-baby.colors").config() - vim.g.gruvbox_baby_highlights = { - StatusLine = { fg = colors.fg, bg = "NONE" }, - } - end, - }, - { - "Mofiqul/dracula.nvim", - enabled = dracula, - config = function() - local is_transparent = false - local colors = require("dracula").colors() - if is_transparent then - colors = { - bg = "none", - } - end - require("dracula").setup({ - colors = { - -- purple = "#FCC76A", - menu = colors.bg, - }, - italic_comment = true, - lualine_bg_color = colors.bg, - overrides = { - Keywords = { fg = colors.cyan, italic = true }, - -- Function = { fg = colors.yellow, italic = true }, - ["@keyword"] = { fg = colors.pink, italic = true }, - ["@keyword.function"] = { fg = colors.cyan, italic = true }, - ["@function"] = { fg = colors.green, italic = true }, - ["@tag.attribute"] = { fg = colors.green, italic = true }, - NvimTreeFolderIcon = { fg = "#6776a7" }, - CmpItemAbbr = { fg = "#ABB2BF" }, - CmpItemKind = { fg = "#ABB2BF" }, - CmpItemAbbrDeprecated = { fg = "#ABB2BF" }, - CmpItemAbbrMatch = { fg = "#8BE9FD" }, - htmlLink = { fg = "#BD93F9", underline = false }, - Underlined = { fg = "#8BE9FD" }, - NvimTreeSpecialFile = { fg = "#FF79C6" }, - MatchParen = { fg = "#F8F8F2" }, - SpellBad = { fg = "#FF6E6E" }, - illuminatedWord = { bg = "#3b4261" }, - illuminatedCurWord = { bg = "#3b4261" }, - IlluminatedWordText = { bg = "#3b4261" }, - IlluminatedWordRead = { bg = "#3b4261" }, - IlluminatedWordWrite = { bg = "#3b4261" }, - StatusLine = { fg = "#f8f8f2", bg = colors.bg }, - StatusLineTerm = { fg = "#f8f8f2", bg = colors.bg }, - BufferLineFill = { bg = colors.bg }, - Pmenu = { fg = colors.white, bg = colors.bg }, - }, - transparent_bg = transparent, - -- transparent_bg = is_transparent, - }) - end, - }, - { - "folke/tokyonight.nvim", - enabled = tokyonight, - config = function() - require("user.tokyonight") - end, - }, - { - "shaunsingh/nord.nvim", - enabled = nord, - config = function() - vim.g.nord_disable_background = transparent - require("nord").set() - end, - }, - { - "sainnhe/sonokai", - enabled = sonokai, - config = function() - vim.g.sonokai_style = sonokai_style - end, - }, - { "lunarvim/lunar.nvim", enabled = lunar }, - { - "marko-cerovac/material.nvim", - enabled = material, - config = function() - local colors = require("material.colors") - vim.g.material_style = material_style - require("material").setup({ - lualine_style = "stealth", - disable = { - background = transparent, - }, - plugins = { -- Uncomment the plugins that you use to highlight them - -- Available plugins: - "dap", - -- "dashboard", - -- "eyeliner", - "fidget", - -- "flash", - -- "gitsigns", - -- "harpoon", - -- "hop", - "illuminate", - "indent-blankline", - -- "lspsaga", - "mini", - -- "neogit", - -- "neotest", - -- "neo-tree", - -- "neorg", - "noice", - "nvim-cmp", - "nvim-navic", - "nvim-tree", - "nvim-web-devicons", - -- "rainbow-delimiters", - -- "sneak", - "telescope", - -- "trouble", - "which-key", - "nvim-notify", - }, - custom_highlights = { - BufferLineFill = { bg = colors.bg }, - StatusLine = { fg = "#f8f8f2", bg = colors.bg }, - StatusLineTerm = { fg = "#f8f8f2", bg = colors.bg }, - }, - }) - end, - }, - { - "navarasu/onedark.nvim", - enabled = onedark, - priority = 1000, - config = function() - -- Lua - require("onedark").setup({ - term_colors = true, - style = onedark_style, - colors = { - bg0 = "#1e222a", - green = "#98c379", - gray = "#abb2bf", - red = "#e06c75", - purple = "#c678dd", - yellow = "#e5c07b", - orange = "#d19a66", - blue = "#61afef", - cyan = "#56b6c2", - bg_d = "$bg", - bg1 = "#1e222a", - }, - code_style = { - comments = "italic", - keywords = "italic", - functions = "none", - strings = "none", - variables = "none", - }, - highlights = { - NoiceCursor = { fg = "$bg0", bg = "$fg" }, - Search = { fg = "$bg0", bg = "$bg_yellow" }, - -- BorderBG = { fg = "#333842" }, -- untuk custom brder color cmp - -- overide indent line fill color - NvimTreeNormal = { fg = "$fg", bg = "$bg0" }, - NvimTreeIndentMarker = { fg = "#3E4450" }, - IblIndent = { fg = "#3E4450" }, - -- NvimTreeFolderIcon = { bg = "NONE", fg = "$blue" }, - ["@markup.link.url"] = { fg = "$cyan", fmt = "italic" }, - ["@text.uri"] = { fg = "$cyan", fmt = "none" }, - ["@tag.delimiter"] = { fg = "$gray" }, - ["@tag.html"] = { fg = "$red" }, - ["@tag.attribute"] = { fg = "$orange", fmt = "italic" }, - ["@tag.javascript"] = { fg = "$red" }, - ["@constructor.javascript"] = { fg = "$red" }, - ["@tag.tsx"] = { fg = "$yellow" }, - ["@constructor.tsx"] = { fg = "$yellow" }, - -- NvimTreeFolderIcon = { fg = "#FCC76A" }, - NvimTreeSpecialFile = { fg = "$yellow", fmt = "italic" }, - BufferLineFill = { bg = "$bg0" }, - BufferLineUnfocusedFill = { bg = "$bg0" }, - StatusLine = { fg = "#f8f8f2", bg = "$bg0" }, - StatusLineTerm = { fg = "#f8f8f2", bg = "$bg0" }, - illuminatedWord = { bg = "#3b4261" }, - illuminatedCurWord = { bg = "#3b4261" }, - IlluminatedWordText = { bg = "#3b4261" }, - IlluminatedWordRead = { bg = "#3b4261" }, - IlluminatedWordWrite = { bg = "#3b4261" }, - PmenuSel = { fg = "$fg", bg = "#333842" }, - -- overide lualine fill color with bg color - LualineNormal = { bg = "$bg0" }, - -- overide lualine_c fill color with bg color - LualineC = { bg = "$bg0" }, - -- overide lualine_x fill color with bg color - LualineX = { bg = "$bg0" }, - -- overide which-key fill color with bg color - WhichKey = { bg = "$bg0" }, - -- overide which-key fill color with bg color - WhichKeySeperator = { bg = "$bg0" }, - -- overide which-key fill color with bg color - WhichKeyDesc = { bg = "$bg0" }, - -- overide which-key fill color with bg color - WhichKeyFloat = { bg = "$bg0" }, - -- overide which-key fill color with bg color - WhichKeyValue = { bg = "$bg0" }, - -- overide which-key fill color with bg color - WhichKeyBorder = { bg = "$bg0" }, - -- overide Lazy fill color with bg color - -- LazyNormal = { bg = "$bg0" }, - -- -- overide lazy background color with bg color - -- LazyBackground = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyH1 = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyH2 = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyH3 = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyH4 = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyH5 = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyH6 = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyButton = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyButtonActive = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazySpecial = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyProgress = { bg = "$bg0" }, - -- Pmenu = { fg = "$fg", bg = "$bg0" }, - CursorLine = { bg = "#333842" }, - Cursor = { fg = "$bg0", bg = "$fg" }, -- character under the cursor - lCursor = { fg = "$bg0", bg = "$fg" }, -- the character under the cursor when |language-mapping| is used (see 'guicursor') - CursorIM = { fg = "$bg0", bg = "$fg" }, -- like Cursor, but used when in IME mode |CursorIM| - CursorColumn = { bg = "#333842" }, -- Screen-column at the cursor, when 'cursorcolumn' is set. - -- Visual = { bg = "$orange" }, - DiffText = { bg = "$orange" }, - DiffAdd = { bg = "#595d65" }, - MiniIndentscopeSymbol = { fg = "$cyan", nocombine = true }, - -- UfoPreviewNormal = { fg = "#373d48", bg = "$bg0" }, - -- UfoPreviewBorder = { fg = "#373d48", bg = "$bg0" }, - -- UfoPreviewCursorLine = { fg = "#373d48", bg = "$bg0" }, - }, - transparent = transparent, - lualine = { - transparent = true, - }, - }) - require("onedark").load() - end, - }, - { - "catppuccin/nvim", - enabled = catppuccin, - name = "catppuccin", - init = function() - require("user.catppuccin") - end, - }, - { - "EdenEast/nightfox.nvim", - enabled = nightfox, - config = function() - local palette = require("nightfox.palette").load("nightfox") - local Color = require("nightfox.lib.color") - local bg = Color.from_hex(palette.bg1) - require("nightfox").setup({ - options = { - terminal_colors = true, - transparent = transparent, - styles = { -- Style to be applied to different syntax groups - comments = "italic", -- Value is any valid attr-list value `:help attr-list` - conditionals = "italic", - constants = "NONE", - functions = "NONE", - keywords = "italic", - numbers = "NONE", - operators = "NONE", - strings = "NONE", - types = "NONE", - variables = "NONE", - }, - }, - palettes = { - all = { - bg0 = palette.bg1, - bg = palette.bg1, - }, - }, - specs = {}, - groups = { - all = { - -- overide bufferline fill color - BufferLineFill = { bg = palette.bg1 }, - BufferLineUnfocusedFill = { bg = palette.bg }, - -- overide nvimtree fill color with bg color - NvimTreeNormal = { bg = palette.bg }, - NvimTreeWinSeparator = { - fg = palette.bg0, - }, - Underlined = { style = "NONE" }, -- overide statusline fill color with bg color - StatusLine = { bg = "NONE" }, - StatusLineTerm = { bg = palette.bg }, - -- overide lualine fill color with bg color - LualineNormal = { bg = palette.bg }, - Pmenu = { bg = "bg3" }, - PmenuSel = { bg = "bg3" }, - }, - }, - }) - end, - }, + -- color scheme + { + "luisiacc/gruvbox-baby", + lazy = true, + enabled = gruvbox, + config = function() + local colors = require("gruvbox-baby.colors").config() + vim.g.gruvbox_baby_highlights = { + StatusLine = { fg = colors.fg, bg = "NONE" }, + } + end, + }, + { + "Mofiqul/dracula.nvim", + enabled = dracula, + config = function() + local is_transparent = false + local colors = require("dracula").colors() + if is_transparent then + colors = { + bg = "none", + } + end + require("dracula").setup({ + colors = { + -- purple = "#FCC76A", + menu = colors.bg, + }, + italic_comment = true, + lualine_bg_color = colors.bg, + overrides = { + Keywords = { fg = colors.cyan, italic = true }, + -- Function = { fg = colors.yellow, italic = true }, + ["@keyword"] = { fg = colors.pink, italic = true }, + ["@keyword.function"] = { fg = colors.cyan, italic = true }, + ["@function"] = { fg = colors.green, italic = true }, + ["@tag.attribute"] = { fg = colors.green, italic = true }, + NvimTreeFolderIcon = { fg = "#6776a7" }, + CmpItemAbbr = { fg = "#ABB2BF" }, + CmpItemKind = { fg = "#ABB2BF" }, + CmpItemAbbrDeprecated = { fg = "#ABB2BF" }, + CmpItemAbbrMatch = { fg = "#8BE9FD" }, + htmlLink = { fg = "#BD93F9", underline = false }, + Underlined = { fg = "#8BE9FD" }, + NvimTreeSpecialFile = { fg = "#FF79C6" }, + MatchParen = { fg = "#F8F8F2" }, + SpellBad = { fg = "#FF6E6E" }, + illuminatedWord = { bg = "#3b4261" }, + illuminatedCurWord = { bg = "#3b4261" }, + IlluminatedWordText = { bg = "#3b4261" }, + IlluminatedWordRead = { bg = "#3b4261" }, + IlluminatedWordWrite = { bg = "#3b4261" }, + StatusLine = { fg = "#f8f8f2", bg = colors.bg }, + StatusLineTerm = { fg = "#f8f8f2", bg = colors.bg }, + BufferLineFill = { bg = colors.bg }, + Pmenu = { fg = colors.white, bg = colors.bg }, + }, + transparent_bg = transparent, + -- transparent_bg = is_transparent, + }) + end, + }, + { + "folke/tokyonight.nvim", + enabled = tokyonight, + config = function() + require("user.tokyonight") + end, + }, + { + "shaunsingh/nord.nvim", + enabled = nord, + config = function() + vim.g.nord_disable_background = transparent + require("nord").set() + end, + }, + { + "sainnhe/sonokai", + enabled = sonokai, + config = function() + vim.g.sonokai_style = sonokai_style + end, + }, + { "lunarvim/lunar.nvim", enabled = lunar }, + { + "marko-cerovac/material.nvim", + enabled = material, + config = function() + local colors = require("material.colors") + vim.g.material_style = material_style + require("material").setup({ + lualine_style = "stealth", + disable = { + background = transparent, + }, + plugins = { -- Uncomment the plugins that you use to highlight them + -- Available plugins: + "dap", + -- "dashboard", + -- "eyeliner", + "fidget", + -- "flash", + -- "gitsigns", + -- "harpoon", + -- "hop", + "illuminate", + "indent-blankline", + -- "lspsaga", + "mini", + -- "neogit", + -- "neotest", + -- "neo-tree", + -- "neorg", + "noice", + "nvim-cmp", + "nvim-navic", + "nvim-tree", + "nvim-web-devicons", + -- "rainbow-delimiters", + -- "sneak", + "telescope", + -- "trouble", + "which-key", + "nvim-notify", + }, + custom_highlights = { + BufferLineFill = { bg = colors.bg }, + StatusLine = { fg = "#f8f8f2", bg = colors.bg }, + StatusLineTerm = { fg = "#f8f8f2", bg = colors.bg }, + }, + }) + end, + }, + { + "navarasu/onedark.nvim", + enabled = onedark, + priority = 1000, + config = function() + -- Lua + require("onedark").setup({ + term_colors = true, + style = onedark_style, + colors = { + bg0 = "#1e222a", + green = "#98c379", + gray = "#abb2bf", + red = "#e06c75", + purple = "#c678dd", + yellow = "#e5c07b", + orange = "#d19a66", + blue = "#61afef", + cyan = "#56b6c2", + bg_d = "$bg", + bg1 = "#1e222a", + }, + code_style = { + comments = "italic", + keywords = "italic", + functions = "none", + strings = "none", + variables = "none", + }, + highlights = { + NoiceCursor = { fg = "$bg0", bg = "$fg" }, + Search = { fg = "$bg0", bg = "$bg_yellow" }, + -- BorderBG = { fg = "#333842" }, -- untuk custom brder color cmp + -- overide indent line fill color + NvimTreeNormal = { fg = "$fg", bg = "$bg0" }, + NvimTreeIndentMarker = { fg = "#3E4450" }, + IblIndent = { fg = "#3E4450" }, + -- NvimTreeFolderIcon = { bg = "NONE", fg = "$blue" }, + ["@markup.link.url"] = { fg = "$cyan", fmt = "italic" }, + ["@text.uri"] = { fg = "$cyan", fmt = "none" }, + ["@tag.delimiter"] = { fg = "$gray" }, + ["@tag.html"] = { fg = "$red" }, + ["@tag.attribute"] = { fg = "$orange", fmt = "italic" }, + ["@tag.javascript"] = { fg = "$red" }, + ["@constructor.javascript"] = { fg = "$red" }, + ["@tag.tsx"] = { fg = "$yellow" }, + ["@constructor.tsx"] = { fg = "$yellow" }, + -- NvimTreeFolderIcon = { fg = "#FCC76A" }, + NvimTreeSpecialFile = { fg = "$yellow", fmt = "italic" }, + BufferLineFill = { bg = "$bg0" }, + BufferLineUnfocusedFill = { bg = "$bg0" }, + StatusLine = { fg = "#f8f8f2", bg = "$bg0" }, + StatusLineTerm = { fg = "#f8f8f2", bg = "$bg0" }, + illuminatedWord = { bg = "#3b4261" }, + illuminatedCurWord = { bg = "#3b4261" }, + IlluminatedWordText = { bg = "#3b4261" }, + IlluminatedWordRead = { bg = "#3b4261" }, + IlluminatedWordWrite = { bg = "#3b4261" }, + PmenuSel = { fg = "$fg", bg = "#333842" }, + -- overide lualine fill color with bg color + LualineNormal = { bg = "$bg0" }, + -- overide lualine_c fill color with bg color + LualineC = { bg = "$bg0" }, + -- overide lualine_x fill color with bg color + LualineX = { bg = "$bg0" }, + -- overide which-key fill color with bg color + WhichKey = { bg = "$bg0" }, + -- overide which-key fill color with bg color + WhichKeySeperator = { bg = "$bg0" }, + -- overide which-key fill color with bg color + WhichKeyDesc = { bg = "$bg0" }, + -- overide which-key fill color with bg color + WhichKeyFloat = { bg = "$bg0" }, + -- overide which-key fill color with bg color + WhichKeyValue = { bg = "$bg0" }, + -- overide which-key fill color with bg color + WhichKeyBorder = { bg = "$bg0" }, + -- overide Lazy fill color with bg color + -- LazyNormal = { bg = "$bg0" }, + -- -- overide lazy background color with bg color + -- LazyBackground = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyH1 = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyH2 = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyH3 = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyH4 = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyH5 = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyH6 = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyButton = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyButtonActive = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazySpecial = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyProgress = { bg = "$bg0" }, + -- Pmenu = { fg = "$fg", bg = "$bg0" }, + CursorLine = { bg = "#333842" }, + Cursor = { fg = "$bg0", bg = "$fg" }, -- character under the cursor + lCursor = { fg = "$bg0", bg = "$fg" }, -- the character under the cursor when |language-mapping| is used (see 'guicursor') + CursorIM = { fg = "$bg0", bg = "$fg" }, -- like Cursor, but used when in IME mode |CursorIM| + CursorColumn = { bg = "#333842" }, -- Screen-column at the cursor, when 'cursorcolumn' is set. + -- Visual = { bg = "$orange" }, + DiffText = { bg = "$orange" }, + DiffAdd = { bg = "#595d65" }, + MiniIndentscopeSymbol = { fg = "$cyan", nocombine = true }, + -- UfoPreviewNormal = { fg = "#373d48", bg = "$bg0" }, + -- UfoPreviewBorder = { fg = "#373d48", bg = "$bg0" }, + -- UfoPreviewCursorLine = { fg = "#373d48", bg = "$bg0" }, + }, + transparent = transparent, + lualine = { + transparent = true, + }, + }) + require("onedark").load() + end, + }, + { + "catppuccin/nvim", + enabled = catppuccin, + name = "catppuccin", + init = function() + require("user.catppuccin") + end, + }, + { + "EdenEast/nightfox.nvim", + enabled = nightfox, + config = function() + local palette = require("nightfox.palette").load("nightfox") + local Color = require("nightfox.lib.color") + local bg = Color.from_hex(palette.bg1) + require("nightfox").setup({ + options = { + terminal_colors = true, + transparent = transparent, + styles = { -- Style to be applied to different syntax groups + comments = "italic", -- Value is any valid attr-list value `:help attr-list` + conditionals = "italic", + constants = "NONE", + functions = "NONE", + keywords = "italic", + numbers = "NONE", + operators = "NONE", + strings = "NONE", + types = "NONE", + variables = "NONE", + }, + }, + palettes = { + all = { + bg0 = palette.bg1, + bg = palette.bg1, + }, + }, + specs = {}, + groups = { + all = { + -- overide bufferline fill color + BufferLineFill = { bg = palette.bg1 }, + BufferLineUnfocusedFill = { bg = palette.bg }, + -- overide nvimtree fill color with bg color + NvimTreeNormal = { bg = palette.bg }, + NvimTreeWinSeparator = { + fg = palette.bg0, + }, + Underlined = { style = "NONE" }, -- overide statusline fill color with bg color + StatusLine = { bg = "NONE" }, + StatusLineTerm = { bg = palette.bg }, + -- overide lualine fill color with bg color + LualineNormal = { bg = palette.bg }, + Pmenu = { bg = "bg3" }, + PmenuSel = { bg = "bg3" }, + }, + }, + }) + end, + }, } diff --git a/lua/user/nvim-tree.lua b/lua/user/nvim-tree.lua index e0e6bbf..ec75996 100644 --- a/lua/user/nvim-tree.lua +++ b/lua/user/nvim-tree.lua @@ -5,167 +5,167 @@ vim.g.loaded_netrwPlugin = 1 vim.opt.termguicolors = true local status_ok, nvim_tree = pcall(require, "nvim-tree") if not status_ok then - return + return end local icons = require("user.icons") nvim_tree.setup({ - filters = { - dotfiles = false, - git_clean = false, - no_buffer = false, - custom = { "node_modules", "\\.cache", "\\.git" }, - exclude = { - ".gitignore", - ".prettierignore", - }, - }, - filesystem_watchers = { - enable = true, - debounce_delay = 50, - ignore_dirs = {}, - }, - git = { - enable = true, -- false dulu karena muncul error - ignore = false, -- true dulu karena muncul error - show_on_dirs = true, - show_on_open_dirs = true, - timeout = 200, - }, - actions = { - use_system_clipboard = true, - change_dir = { - enable = true, - global = false, - restrict_above_cwd = false, - }, - expand_all = { - max_folder_discovery = 300, - exclude = {}, - }, - file_popup = { - open_win_config = { - col = 1, - row = 1, - relative = "cursor", - border = "shadow", - style = "minimal", - }, - }, - open_file = { - quit_on_open = false, - resize_window = false, - window_picker = { - enable = true, - picker = "default", - chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", - exclude = { - filetype = { "notify", "lazy", "qf", "diff", "fugitive", "fugitiveblame" }, - buftype = { "nofile", "terminal", "help" }, - }, - }, - }, - remove_file = { - close_window = true, - }, - }, - trash = { - cmd = "trash", - require_confirm = true, - }, - live_filter = { - prefix = "[FILTER]: ", - always_show_folders = true, - }, - tab = { - sync = { - open = false, - close = false, - ignore = {}, - }, - }, - notify = { - threshold = vim.log.levels.INFO, - }, - log = { - enable = false, - truncate = false, - types = { - all = false, - config = false, - copy_paste = false, - dev = false, - diagnostics = false, - git = false, - profile = false, - watcher = false, - }, - }, - system_open = { - cmd = nil, - 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 = "", - 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", - }, + filters = { + dotfiles = false, + git_clean = false, + no_buffer = false, + custom = { "node_modules", "\\.cache", "\\.git" }, + exclude = { + ".gitignore", + ".prettierignore", + }, + }, + filesystem_watchers = { + enable = true, + debounce_delay = 50, + ignore_dirs = {}, + }, + git = { + enable = true, -- false dulu karena muncul error + ignore = false, -- true dulu karena muncul error + show_on_dirs = true, + show_on_open_dirs = true, + timeout = 200, + }, + actions = { + use_system_clipboard = true, + change_dir = { + enable = true, + global = false, + restrict_above_cwd = false, + }, + expand_all = { + max_folder_discovery = 300, + exclude = {}, + }, + file_popup = { + open_win_config = { + col = 1, + row = 1, + relative = "cursor", + border = "shadow", + style = "minimal", + }, + }, + open_file = { + quit_on_open = false, + resize_window = false, + window_picker = { + enable = true, + picker = "default", + chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", + exclude = { + filetype = { "notify", "lazy", "qf", "diff", "fugitive", "fugitiveblame" }, + buftype = { "nofile", "terminal", "help" }, + }, + }, + }, + remove_file = { + close_window = true, + }, + }, + trash = { + cmd = "trash", + require_confirm = true, + }, + live_filter = { + prefix = "[FILTER]: ", + always_show_folders = true, + }, + tab = { + sync = { + open = false, + close = false, + ignore = {}, + }, + }, + notify = { + threshold = vim.log.levels.INFO, + }, + log = { + enable = false, + truncate = false, + types = { + all = false, + config = false, + copy_paste = false, + dev = false, + diagnostics = false, + git = false, + profile = false, + watcher = false, + }, + }, + system_open = { + cmd = nil, + args = {}, + }, + renderer = { + -- root_folder_modifier = ":t", + root_folder_label = false, + indent_markers = { + enable = false, + 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 = "", + 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", + }, })