From 75451e120e97f5d4bf20ea9ee4c6e14c8a692359 Mon Sep 17 00:00:00 2001 From: Carlos Gutierrez Date: Tue, 13 Jan 2026 19:16:25 -0500 Subject: [PATCH] fixing configs --- lua/cargdev/core/keymaps/lsp.lua | 2 +- lua/cargdev/core/keymaps/personal.lua | 16 ++++++++-------- lua/cargdev/plugins/lualine.lua | 24 ++++++++++++------------ lua/cargdev/plugins/nvim-tree.lua | 2 +- lua/cargdev/plugins/which-key.lua | 5 +++-- 5 files changed, 25 insertions(+), 24 deletions(-) diff --git a/lua/cargdev/core/keymaps/lsp.lua b/lua/cargdev/core/keymaps/lsp.lua index d800276..e736be9 100644 --- a/lua/cargdev/core/keymaps/lsp.lua +++ b/lua/cargdev/core/keymaps/lsp.lua @@ -13,7 +13,7 @@ keymap.set("n", "gt", "FzfLua lsp_typedefs", { desc = "Go to type defin -- Symbol search keymap.set("n", "ds", "FzfLua lsp_document_symbols", { desc = "Document symbols" }) -keymap.set("n", "ws", "FzfLua lsp_workspace_symbols", { desc = "Workspace symbols" }) +keymap.set("n", "lw", "FzfLua lsp_workspace_symbols", { desc = "LSP: Workspace symbols" }) -- Code actions and documentation keymap.set("n", "ca", "FzfLua lsp_code_actions", { desc = "Code actions" }) diff --git a/lua/cargdev/core/keymaps/personal.lua b/lua/cargdev/core/keymaps/personal.lua index eaaf39e..0e2814c 100644 --- a/lua/cargdev/core/keymaps/personal.lua +++ b/lua/cargdev/core/keymaps/personal.lua @@ -68,7 +68,7 @@ keymap.set( keymap.set("n", ",", "$a,", { desc = "Adding ',' at the end of the line" }) keymap.set("n", ";", "$a;", { desc = "Adding ';' at the end of the line" }) keymap.set("n", "con", "oconsole.log()0w$h", { desc = "Adding console.log() on the line below" }) -keymap.set("n", "x", ":!node %", { desc = "Running current project using node" }) +keymap.set("n", "xr", ":!node %", { desc = "Run file with node" }) -- Resize splits keymaps are centralized in lua/cargdev/core/keymaps/window.lua @@ -91,15 +91,15 @@ keymap.set("n", "p", function() end, { desc = "Paste HTML clipboard as Markdown" }) -- ============================================================================= --- QUICKFIX NAVIGATION +-- QUICKFIX NAVIGATION (under x for Trouble/Diagnostics group) -- ============================================================================= -keymap.set("n", "qn", ":cnextzz", { desc = "Quickfix: Next item" }) -keymap.set("n", "qp", ":cprevzz", { desc = "Quickfix: Previous item" }) -keymap.set("n", "qo", ":copen", { desc = "Quickfix: Open list" }) -keymap.set("n", "qq", ":cclose", { desc = "Quickfix: Close list" }) -keymap.set("n", "qf", ":cfirstzz", { desc = "Quickfix: First item" }) -keymap.set("n", "ql", ":clastzz", { desc = "Quickfix: Last item" }) +keymap.set("n", "xn", ":cnextzz", { desc = "Quickfix: Next item" }) +keymap.set("n", "xp", ":cprevzz", { desc = "Quickfix: Previous item" }) +keymap.set("n", "xo", ":copen", { desc = "Quickfix: Open list" }) +keymap.set("n", "xq", ":cclose", { desc = "Quickfix: Close list" }) +keymap.set("n", "xf", ":cfirstzz", { desc = "Quickfix: First item" }) +keymap.set("n", "xl", ":clastzz", { desc = "Quickfix: Last item" }) -- Location list navigation keymap.set("n", "ln", ":lnextzz", { desc = "Location: Next item" }) diff --git a/lua/cargdev/plugins/lualine.lua b/lua/cargdev/plugins/lualine.lua index df8d1a3..6fd1598 100644 --- a/lua/cargdev/plugins/lualine.lua +++ b/lua/cargdev/plugins/lualine.lua @@ -14,8 +14,8 @@ return { orange = "#d19a66", red = "#e06c75", yellow = "#e5c07b", - fg = "#98c379", -- Bright green for better visibility - fg_dim = "#7ec8e3", -- Light blue for secondary text + fg = "#98c379", -- Bright green for better visibility + fg_dim = "#7ec8e3", -- Light blue for secondary text bg = "#282c34", bg_dark = "#21252b", white = "#ffffff", @@ -25,34 +25,34 @@ return { -- P10k rainbow style theme with solid backgrounds local theme = { normal = { - a = { bg = colors.blue, fg = colors.black, gui = "bold" }, + a = { bg = colors.blue, fg = colors.white, gui = "bold" }, b = { bg = colors.bg, fg = colors.cyan }, c = { bg = colors.bg_dark, fg = colors.green }, - z = { bg = colors.blue, fg = colors.black, gui = "bold" }, + z = { bg = colors.blue, fg = colors.white, gui = "bold" }, }, insert = { - a = { bg = colors.green, fg = colors.black, gui = "bold" }, + a = { bg = colors.green, fg = colors.white, gui = "bold" }, b = { bg = colors.bg, fg = colors.cyan }, c = { bg = colors.bg_dark, fg = colors.green }, - z = { bg = colors.green, fg = colors.black, gui = "bold" }, + z = { bg = colors.green, fg = colors.white, gui = "bold" }, }, visual = { - a = { bg = colors.magenta, fg = colors.black, gui = "bold" }, + a = { bg = colors.magenta, fg = colors.white, gui = "bold" }, b = { bg = colors.bg, fg = colors.cyan }, c = { bg = colors.bg_dark, fg = colors.green }, - z = { bg = colors.magenta, fg = colors.black, gui = "bold" }, + z = { bg = colors.magenta, fg = colors.white, gui = "bold" }, }, command = { - a = { bg = colors.yellow, fg = colors.black, gui = "bold" }, + a = { bg = colors.yellow, fg = colors.white, gui = "bold" }, b = { bg = colors.bg, fg = colors.cyan }, c = { bg = colors.bg_dark, fg = colors.green }, - z = { bg = colors.yellow, fg = colors.black, gui = "bold" }, + z = { bg = colors.yellow, fg = colors.white, gui = "bold" }, }, replace = { - a = { bg = colors.red, fg = colors.black, gui = "bold" }, + a = { bg = colors.red, fg = colors.white, gui = "bold" }, b = { bg = colors.bg, fg = colors.cyan }, c = { bg = colors.bg_dark, fg = colors.green }, - z = { bg = colors.red, fg = colors.black, gui = "bold" }, + z = { bg = colors.red, fg = colors.white, gui = "bold" }, }, inactive = { a = { bg = colors.bg_dark, fg = colors.cyan }, diff --git a/lua/cargdev/plugins/nvim-tree.lua b/lua/cargdev/plugins/nvim-tree.lua index ee896c9..dcb5360 100644 --- a/lua/cargdev/plugins/nvim-tree.lua +++ b/lua/cargdev/plugins/nvim-tree.lua @@ -1,6 +1,6 @@ return { "nvim-tree/nvim-tree.lua", - dependencies = "nvim-tree/nvim-web-devicons", + dependencies = "ryanoasis/vim-devicons", config = function() local nvimtree = require("nvim-tree") diff --git a/lua/cargdev/plugins/which-key.lua b/lua/cargdev/plugins/which-key.lua index e9929a9..ddad636 100644 --- a/lua/cargdev/plugins/which-key.lua +++ b/lua/cargdev/plugins/which-key.lua @@ -32,10 +32,11 @@ return { { "m", group = "Format" }, { "n", group = "Notifications" }, { "p", group = "Project" }, - { "q", group = "Quickfix" }, + { "q", group = "Quit" }, { "s", group = "Session/Split/Substitute" }, { "t", group = "Tab/Terminal/Text" }, - { "x", group = "Trouble/Diagnostics" }, + { "w", group = "Save" }, + { "x", group = "Trouble/Quickfix" }, { "z", group = "Copilot Chat" }, }) end,