diff --git a/lazy-lock.json b/lazy-lock.json index a387e4b..1f6e586 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -45,7 +45,7 @@ "promise-async": { "branch": "main", "commit": "38a4575da9497326badd3995e768b4ccf0bb153e" }, "smart-splits.nvim": { "branch": "master", "commit": "f6fcb79527872e9330c554915af2ca511c388390" }, "statuscol.nvim": { "branch": "main", "commit": "d954893262a57a92e46edd87de67e2b3fe72305e" }, - "telescope.nvim": { "branch": "master", "commit": "4d4ade7f2b8f403e8816ca50c05ed16e259b21fb" }, + "telescope.nvim": { "branch": "master", "commit": "5a701e99906961218b55d7ad6c2a998f066c6fe0" }, "toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" }, "vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" }, "vim-startuptime": { "branch": "master", "commit": "97a88e688482a09c3c4b777d07b509b328a5ec29" }, diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index d776489..dac66a2 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -5,8 +5,6 @@ if not vim.loop.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath }) end - -local icons = require("user.icons").ui vim.opt.rtp:prepend(vim.env.LAZY or lazypath) vim.g.mapleader = " " vim.g.maplocalleader = " " @@ -26,10 +24,10 @@ require("lazy").setup({ throttle = 40, custom_keys = { ["l"] = false }, icons = { - ft = icons.ft, - lazy = icons.Bell .. " ", - loaded = icons.CheckCircle, - not_loaded = icons.not_loaded, + ft = "", + lazy = "󰂠 ", + loaded = "", + not_loaded = "", }, }, change_detection = { enabled = false, notify = false }, diff --git a/lua/core/neovide.lua b/lua/core/neovide.lua index f749364..2595084 100644 --- a/lua/core/neovide.lua +++ b/lua/core/neovide.lua @@ -18,18 +18,12 @@ if vim.g.neovide then -- config for transparent --vim.g.neovide_transparency = 0.8 - vim.g.neovide_hide_mouse_when_typing = false vim.g.neovide_transparency = 1 vim.g.neovide_underline_automatic_scaling = false vim.g.neovide_refresh_rate_idle = 5 vim.g.neovide_no_idle = true vim.g.neovide_remember_window_size = true vim.g.neovide_touch_drag_timeout = 0.17 - vim.g.neovide_show_border = false - vim.g.neovide_theme = "auto" - vim.g.neovide_confirm_quit = true - vim.g.neovide_remember_window_size = true - vim.g.neovide_cursor_smooth_blink = true -- animation config --vim.g.neovide_scroll_animation_length = 0.3 --vim.g.neovide_cursor_animation_length = 0.13 diff --git a/lua/custom/plugins/bufferline.lua b/lua/custom/plugins/bufferline.lua index 130d45c..c422785 100644 --- a/lua/custom/plugins/bufferline.lua +++ b/lua/custom/plugins/bufferline.lua @@ -13,7 +13,7 @@ return { -- get folder name from current directory local _get_folder_name = function() local str = vim.fn.fnamemodify(vim.fn.getcwd(), ":t") - return " " .. icons.ui.ProjekFolder .. " " .. str:lower():gsub("^%l", string.upper) .. " " + return " 󱧶 " .. str:lower():gsub("^%l", string.upper) .. " " end local function diagnostics_indicator(num, _, diagnostics, _) @@ -53,7 +53,7 @@ return { middle_mouse_command = nil, indicator_icon = nil, - indicator = { style = "icon", icon = icons.ui.BoldLineLeft }, + indicator = { style = "icon", icon = "▎" }, buffer_close_icon = icons.ui.Close, modified_icon = icons.ui.Circle, close_icon = icons.ui.BoldClose, diff --git a/lua/custom/plugins/cmdline.lua b/lua/custom/plugins/cmdline.lua index 7cd864a..bc11ee3 100644 --- a/lua/custom/plugins/cmdline.lua +++ b/lua/custom/plugins/cmdline.lua @@ -1,10 +1,10 @@ -- initial gui app local is_neovide = false local use_noice = true --- if vim.g.neovide then --- is_neovide = true --- use_noice = false --- end +if vim.g.neovide then + is_neovide = true + use_noice = false +end vim.opt.lazyredraw = is_neovide return { { "gelguy/wilder.nvim", enabled = not use_noice }, diff --git a/lua/custom/plugins/lualine_backup.lua b/lua/custom/plugins/lualine_backup.lua index 08f1289..69bd04f 100644 --- a/lua/custom/plugins/lualine_backup.lua +++ b/lua/custom/plugins/lualine_backup.lua @@ -131,9 +131,9 @@ return { local get_branch = function() if vim.b.gitsigns_head ~= nil then - return icons.git.Branch2 .. " " .. vim.b.gitsigns_head + return " " .. vim.b.gitsigns_head else - return icons.git.Branch2 .. vim.fn.fnamemodify("", ":t") + return "" .. vim.fn.fnamemodify("", ":t") end end diff --git a/lua/custom/plugins/nvimufo.lua b/lua/custom/plugins/nvimufo.lua index 2baacba..cc27005 100644 --- a/lua/custom/plugins/nvimufo.lua +++ b/lua/custom/plugins/nvimufo.lua @@ -205,22 +205,17 @@ return { -- Memeriksa apakah baris awal dari fold adalah komentar local start_line = vim.api.nvim_buf_get_lines(0, lnum - 1, lnum, false)[1] - -- cari comentar dengan awalan /* untuk generaal comment - if start_line:find("^%s*%/%*") then + if start_line:find("^%s*%/%*") then -- Regex untuk mengecek komentar javascript is_comment = true - -- cara commentar dengan awalan