diff --git a/lua/custom/default.lua b/lua/custom/default.lua index cae0b81..09652fb 100644 --- a/lua/custom/default.lua +++ b/lua/custom/default.lua @@ -119,24 +119,24 @@ vim.g.pcode_dap_ensure_installed = { } -- https://github.com/folke/which-key.nvim -vim.g.pcode_whichkey = { - -- contoh penambahan - -- ["k"] = { - -- name = "Example", - -- k = { 'lua print("Testing")', "Example" }, - -- }, - -- ["r"] = { - -- name = "Run", - -- j = { "Jaq float", "Run With Jaq" }, - -- }, - ["o"] = { "SymbolsOutline", "Symbol Outline" }, - ["m"] = { - name = "Minimap", - c = { "lua require('mini.map').close()", "Minimap Close" }, - o = { "lua require('mini.map').open()", "Minimap Open" }, - }, - ["e"] = { "NvimTreeToggle", "Explorer" }, -} +-- vim.g.pcode_whichkey = { +-- contoh penambahan +-- ["k"] = { +-- name = "Example", +-- k = { 'lua print("Testing")', "Example" }, +-- }, +-- ["r"] = { +-- name = "Run", +-- j = { "Jaq float", "Run With Jaq" }, +-- }, +-- ["o"] = { "SymbolsOutline", "Symbol Outline" }, +-- ["m"] = { +-- name = "Minimap", +-- c = { "lua require('mini.map').close()", "Minimap Close" }, +-- o = { "lua require('mini.map').open()", "Minimap Open" }, +-- }, +-- ["e"] = { "NvimTreeToggle", "Explorer" }, +-- } -- https://github.com/CRAG666/code_runner.nvim -- ready default java, python, typescript, javascript, rust, cpp, scss diff --git a/lua/user/whichkey.lua b/lua/user/whichkey.lua index 8f92d28..1ab1a3b 100644 --- a/lua/user/whichkey.lua +++ b/lua/user/whichkey.lua @@ -140,7 +140,7 @@ local debug_key = {} if vim.fn.has("win32") == 0 then debug_key = { - name = "Debug", + name = "  Debug", t = { "lua require'dap'.toggle_breakpoint()", "Toggle Breakpoint" }, b = { "lua require'dap'.step_back()", "Step Back" }, c = { "lua require'dap'.continue()", "Continue" }, @@ -159,25 +159,25 @@ if vim.fn.has("win32") == 0 then end -- end debug local mappings2 = { - ["/"] = { "lua require('Comment.api').toggle.linewise(vim.fn.visualmode())", "Commet Block" }, + ["/"] = { "lua require('Comment.api').toggle.linewise(vim.fn.visualmode())", "󰆈 Commet Block" }, } local mappings = { - ["a"] = { "Alpha", "Alpha" }, + ["a"] = { "Alpha", "󰕮 Alpha" }, ["b"] = { "lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{previewer = false})", - "Buffers", + " Buffers", }, --["e"] = { "NvimTreeToggle", "Explorer" }, - ["e"] = { "NvimTreeToggle", "Explorer" }, - ["w"] = { "w!", "Save" }, - ["q"] = { "q!", "Quit" }, - ["c"] = { "Bdelete!", "Close Buffer" }, - ["h"] = { "nohlsearch", "No Highlight" }, + ["e"] = { "NvimTreeToggle", "󰙅 Explorer" }, + ["w"] = { "w!", "󰆓 Save" }, + ["q"] = { "q!", "󰿅 Quit" }, + ["c"] = { "Bdelete!", " 󰅗 Close Buffer" }, + ["h"] = { "nohlsearch", "󱪿 No Highlight" }, ["f"] = { "Telescope find_files ", - "Find files", + " Find files", }, - ["F"] = { "Telescope live_grep theme=ivy", "Find Text" }, + ["F"] = { "Telescope live_grep theme=ivy", " Find Text" }, -- ["P"] = { "lua require('telescope').extensions.projects.projects()", "Projects" }, -- ["z"] = { "Lazy", "Lazy" }, @@ -185,7 +185,7 @@ local mappings = { function() require("Comment.api").toggle.linewise.current() end, - "Coment line", + "󰆈 Coment line", }, -- ["m"] = { -- name = "Markdown", @@ -202,7 +202,7 @@ local mappings = { -- }, g = { - name = "Git", + name = "  Git", g = { "lua _LAZYGIT_TOGGLE()", "Lazygit" }, j = { "lua require 'gitsigns'.next_hunk()", "Next Hunk" }, k = { "lua require 'gitsigns'.prev_hunk()", "Prev Hunk" }, @@ -225,7 +225,7 @@ local mappings = { }, l = { - name = "LSP", + name = "  LSP", a = { "lua vim.lsp.buf.code_action()", "Code Action" }, d = { "Telescope diagnostics bufnr=0", @@ -256,7 +256,7 @@ local mappings = { }, }, s = { - name = "Search", + name = "  Search", b = { "Telescope git_branches", "Checkout branch" }, c = { "Telescope colorscheme", "Colorscheme" }, h = { "Telescope help_tags", "Find Help" }, @@ -268,7 +268,7 @@ local mappings = { }, t = { - name = "Terminal", + name = "  Terminal", l = { "lua _LIVE_SERVER()", "Live Server" }, -- l = { "ToggleTerm direction=tablive-server", "Live Server" }, x = { "ToggleTermToggleAll!", "Close Tab" }, @@ -282,7 +282,7 @@ local mappings = { s = { "ToggleTerm direction=tab", "New Tab" }, }, r = { - name = "Run", + name = "  Run", s = { 'autocmd bufwritepost [^_]*.sass,[^_]*.scss silent exec "!sass %:p %:r.css"', "Auto Compile Sass", @@ -428,7 +428,7 @@ local mappings = { -- }, d = debug_key, p = { - name = "Plugins(Lazy)", + name = " 󱑠 Plugins(Lazy)", i = { "Lazy install", "Install" }, s = { "Lazy sync", "Sync" }, S = { "Lazy clear", "Status" },