diff --git a/lazy-lock.json b/lazy-lock.json index 1f6e586..a387e4b 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": "5a701e99906961218b55d7ad6c2a998f066c6fe0" }, + "telescope.nvim": { "branch": "master", "commit": "4d4ade7f2b8f403e8816ca50c05ed16e259b21fb" }, "toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" }, "vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" }, "vim-startuptime": { "branch": "master", "commit": "97a88e688482a09c3c4b777d07b509b328a5ec29" }, diff --git a/lua/core/neovide.lua b/lua/core/neovide.lua index 2595084..2e59bfc 100644 --- a/lua/core/neovide.lua +++ b/lua/core/neovide.lua @@ -18,6 +18,7 @@ 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 diff --git a/lua/custom/plugins/cmdline.lua b/lua/custom/plugins/cmdline.lua index bc11ee3..7cd864a 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/plugins/cmp_cmdline.lua b/lua/plugins/cmp_cmdline.lua index 6ceee45..19948ab 100644 --- a/lua/plugins/cmp_cmdline.lua +++ b/lua/plugins/cmp_cmdline.lua @@ -3,7 +3,7 @@ return { { "gelguy/wilder.nvim", lazy = true, - event = "BufWinEnter", + event = "VeryLazy", config = function() local wilder = require("wilder") wilder.setup({ modes = { ":", "/", "?" } }) diff --git a/lua/user/dashboard.lua b/lua/user/dashboard.lua index ba9d1c8..803f174 100644 --- a/lua/user/dashboard.lua +++ b/lua/user/dashboard.lua @@ -25,14 +25,14 @@ end local dashboard = require("alpha.themes.dashboard") dashboard.section.header.val = board dashboard.section.buttons.val = { - dashboard.button("f", " Find file", ":Telescope find_files "), + dashboard.button("f", "󰈞 Find file", ":Telescope find_files "), dashboard.button("e", " New file", ":ene startinsert "), dashboard.button("p", " Find project", ":Telescope projects "), - dashboard.button("r", " Recently used files", ":Telescope oldfiles "), - dashboard.button("t", " Find text", ":Telescope live_grep "), + dashboard.button("r", "󰦛 Recently used files", ":Telescope oldfiles "), + dashboard.button("t", "󰊄 Find text", ":Telescope live_grep "), dashboard.button("c", " Configuration", ":e $MYVIMRC "), - dashboard.button("z", "鈴 Lazy", ":Lazy"), - dashboard.button("q", " Quit Neovim", ":qa"), + dashboard.button("z", "󰒲 Lazy", ":Lazy"), + dashboard.button("q", "󰅚 Quit Neovim", ":qa"), } dashboard.section.footer.opts.hl = "Type" diff --git a/lua/user/icons.lua b/lua/user/icons.lua index f50a953..26ec403 100644 --- a/lua/user/icons.lua +++ b/lua/user/icons.lua @@ -11,7 +11,7 @@ return { Event = "", Field = "", File = "", - Folder = "", + Folder = "󰉋", Function = "", Interface = "", Key = "", @@ -19,7 +19,7 @@ return { Method = "", Module = "", Namespace = "", - Null = "ﳠ", + Null = "󰟢", Number = "", Object = "", Operator = "", @@ -69,7 +69,7 @@ return { Bug = "", Stacks = "", Scopes = "", - Watches = "", + Watches = "", DebugConsole = "", Calendar = "", Check = "", @@ -80,7 +80,7 @@ return { ChevronShortUp = "", Circle = "", Dot = "", - Close = "", + Close = "", CloudDownload = "", Code = "", Comment = "", @@ -115,19 +115,19 @@ return { NewFile = "", Note = "", Package = "", - Pencil = "", + Pencil = "󰏫", Plus = "", Project = "", Search = "", SignIn = "", SignOut = "", - Tab = "", + Tab = "", Table = "", Target = "", Telescope = "", Text = "", Tree = "", - Triangle = "契", + Triangle = "▸", TriangleShortArrowDown = "", TriangleShortArrowLeft = "", TriangleShortArrowRight = "", @@ -144,7 +144,7 @@ return { BoldQuestion = "", Question = "", BoldHint = "", - Hint = "", + Hint = "󰌶", Debug = "", Trace = "✎", }, diff --git a/lua/user/startify.lua b/lua/user/startify.lua index e6d2062..65dc2d4 100644 --- a/lua/user/startify.lua +++ b/lua/user/startify.lua @@ -18,13 +18,13 @@ if data_exists then end startify.section.header.val = dash_model startify.section.top_buttons.val = { - startify.button("f", " Find file", ":Telescope find_files "), + startify.button("f", "󰈞 Find file", ":Telescope find_files "), startify.button("e", " New file", ":ene startinsert "), startify.button("p", " Find project", ":Telescope projects "), - startify.button("r", " Recently used files", ":Telescope oldfiles "), - startify.button("t", " Find text", ":Telescope live_grep "), + startify.button("r", "󰦛 Recently used files", ":Telescope oldfiles "), + startify.button("t", "󰊄 Find text", ":Telescope live_grep "), startify.button("c", " Configuration", ":e $MYVIMRC "), - startify.button("z", "鈴 Lazy", ":Lazy"), + startify.button("z", "󰒲 Lazy", ":Lazy"), -- startify.button("q", " Quit Neovim", ":qa"), } -- disable MRU @@ -37,7 +37,7 @@ startify.nvim_web_devicons.enabled = false -- startify.nvim_web_devicons.highlight = 'Keyword' -- startify.section.bottom_buttons.val = { - startify.button("q", " Quit NVIM", ":qa"), + startify.button("q", "󰅚 Quit NVIM", ":qa"), } local footer_text = "Pojok Code" diff --git a/lua/user/webdevicons.lua b/lua/user/webdevicons.lua index 0c36448..e17466d 100644 --- a/lua/user/webdevicons.lua +++ b/lua/user/webdevicons.lua @@ -7,21 +7,18 @@ local material_icon_ok, material_icon = pcall(require, "nvim-material-icon") if not material_icon_ok then return end -local prettier_icon = "" -local term_program = vim.fn.getenv("TERM_PROGRAM") -if term_program == vim.NIL then - prettier_icon = "" -end + +local prettier_icon = "" material_icon.setup({ override = { ["mjs"] = { - icon = "", + icon = "󰌞", color = "#f2c55c", cterm_color = "220", name = "Mjs", }, ["js"] = { - icon = "", + icon = "󰌞", color = "#f2c55c", cterm_color = "220", name = "javascript", @@ -170,6 +167,30 @@ material_icon.setup({ cterm_color = "220", name = "README_file", }, + ["sh"] = { + icon = "", + color = "#ef510b", + cterm_color = "220", + name = "README_file", + }, + ["pdf"] = { + icon = "", + color = "#ef510b", + cterm_color = "220", + name = "pdffile", + }, + ["xlsx"] = { + icon = "󱀭", + color = "#349C42", + cterm_color = "220", + name = "xlsxfile", + }, + ["xls"] = { + icon = "󱀭", + color = "#349C42", + cterm_color = "220", + name = "xlsfile", + }, -- ["go"] = { -- icon = "󰟓", -- color = "#0FBFCF", @@ -196,6 +217,12 @@ web_devicons.setup({ cterm_color = "240", name = "viteconfigts", }, + ["vite.config.js"] = { + icon = "󰉁", + color = "#ffab00", + cterm_color = "240", + name = "viteconfigjs", + }, [".releaserc"] = { icon = "󰚧", color = "#9C9C9C", @@ -275,7 +302,7 @@ web_devicons.setup({ name = "sequelizerc", }, ["pre-commit"] = { - icon = "", + icon = "", color = "#75e4b3", cterm_color = "240", name = "pre", @@ -382,5 +409,29 @@ web_devicons.setup({ cterm_color = "220", name = "gradlewFile-staging", }, + ["nodemon.json"] = { + icon = "󰇴", + color = "#76d04b", + cterm_color = "220", + name = "nodemonjson", + }, + ["webpack.config.js"] = { + icon = "󰜫", + color = "#8ED6FB", + cterm_color = "220", + name = "webpackconfigjs", + }, + ["package.json"] = { + icon = "", + color = "#8ED6FB", + cterm_color = "220", + name = "packagejson", + }, + [".gitignore"] = { + icon = "󰊢", + color = "#8ED6FB", + cterm_color = "220", + name = "gitignore", + }, }, })