fixing configs
This commit is contained in:
@@ -13,7 +13,7 @@ keymap.set("n", "gt", "<cmd>FzfLua lsp_typedefs<cr>", { desc = "Go to type defin
|
|||||||
|
|
||||||
-- Symbol search
|
-- Symbol search
|
||||||
keymap.set("n", "<leader>ds", "<cmd>FzfLua lsp_document_symbols<cr>", { desc = "Document symbols" })
|
keymap.set("n", "<leader>ds", "<cmd>FzfLua lsp_document_symbols<cr>", { desc = "Document symbols" })
|
||||||
keymap.set("n", "<leader>ws", "<cmd>FzfLua lsp_workspace_symbols<cr>", { desc = "Workspace symbols" })
|
keymap.set("n", "<leader>lw", "<cmd>FzfLua lsp_workspace_symbols<cr>", { desc = "LSP: Workspace symbols" })
|
||||||
|
|
||||||
-- Code actions and documentation
|
-- Code actions and documentation
|
||||||
keymap.set("n", "<leader>ca", "<cmd>FzfLua lsp_code_actions<cr>", { desc = "Code actions" })
|
keymap.set("n", "<leader>ca", "<cmd>FzfLua lsp_code_actions<cr>", { desc = "Code actions" })
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ keymap.set(
|
|||||||
keymap.set("n", "<leader>,", "$a,<ESC>", { desc = "Adding ',' at the end of the line" })
|
keymap.set("n", "<leader>,", "$a,<ESC>", { desc = "Adding ',' at the end of the line" })
|
||||||
keymap.set("n", "<leader>;", "$a;<ESC>", { desc = "Adding ';' at the end of the line" })
|
keymap.set("n", "<leader>;", "$a;<ESC>", { desc = "Adding ';' at the end of the line" })
|
||||||
keymap.set("n", "<leader>con", "oconsole.log()<ESC>0w$h", { desc = "Adding console.log() on the line below" })
|
keymap.set("n", "<leader>con", "oconsole.log()<ESC>0w$h", { desc = "Adding console.log() on the line below" })
|
||||||
keymap.set("n", "<leader>x", ":!node %<CR>", { desc = "Running current project using node" })
|
keymap.set("n", "<leader>xr", ":!node %<CR>", { desc = "Run file with node" })
|
||||||
|
|
||||||
-- Resize splits keymaps are centralized in lua/cargdev/core/keymaps/window.lua
|
-- Resize splits keymaps are centralized in lua/cargdev/core/keymaps/window.lua
|
||||||
|
|
||||||
@@ -91,15 +91,15 @@ keymap.set("n", "<leader>p", function()
|
|||||||
end, { desc = "Paste HTML clipboard as Markdown" })
|
end, { desc = "Paste HTML clipboard as Markdown" })
|
||||||
|
|
||||||
-- =============================================================================
|
-- =============================================================================
|
||||||
-- QUICKFIX NAVIGATION
|
-- QUICKFIX NAVIGATION (under <leader>x for Trouble/Diagnostics group)
|
||||||
-- =============================================================================
|
-- =============================================================================
|
||||||
|
|
||||||
keymap.set("n", "<leader>qn", ":cnext<CR>zz", { desc = "Quickfix: Next item" })
|
keymap.set("n", "<leader>xn", ":cnext<CR>zz", { desc = "Quickfix: Next item" })
|
||||||
keymap.set("n", "<leader>qp", ":cprev<CR>zz", { desc = "Quickfix: Previous item" })
|
keymap.set("n", "<leader>xp", ":cprev<CR>zz", { desc = "Quickfix: Previous item" })
|
||||||
keymap.set("n", "<leader>qo", ":copen<CR>", { desc = "Quickfix: Open list" })
|
keymap.set("n", "<leader>xo", ":copen<CR>", { desc = "Quickfix: Open list" })
|
||||||
keymap.set("n", "<leader>qq", ":cclose<CR>", { desc = "Quickfix: Close list" })
|
keymap.set("n", "<leader>xq", ":cclose<CR>", { desc = "Quickfix: Close list" })
|
||||||
keymap.set("n", "<leader>qf", ":cfirst<CR>zz", { desc = "Quickfix: First item" })
|
keymap.set("n", "<leader>xf", ":cfirst<CR>zz", { desc = "Quickfix: First item" })
|
||||||
keymap.set("n", "<leader>ql", ":clast<CR>zz", { desc = "Quickfix: Last item" })
|
keymap.set("n", "<leader>xl", ":clast<CR>zz", { desc = "Quickfix: Last item" })
|
||||||
|
|
||||||
-- Location list navigation
|
-- Location list navigation
|
||||||
keymap.set("n", "<leader>ln", ":lnext<CR>zz", { desc = "Location: Next item" })
|
keymap.set("n", "<leader>ln", ":lnext<CR>zz", { desc = "Location: Next item" })
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ return {
|
|||||||
orange = "#d19a66",
|
orange = "#d19a66",
|
||||||
red = "#e06c75",
|
red = "#e06c75",
|
||||||
yellow = "#e5c07b",
|
yellow = "#e5c07b",
|
||||||
fg = "#98c379", -- Bright green for better visibility
|
fg = "#98c379", -- Bright green for better visibility
|
||||||
fg_dim = "#7ec8e3", -- Light blue for secondary text
|
fg_dim = "#7ec8e3", -- Light blue for secondary text
|
||||||
bg = "#282c34",
|
bg = "#282c34",
|
||||||
bg_dark = "#21252b",
|
bg_dark = "#21252b",
|
||||||
white = "#ffffff",
|
white = "#ffffff",
|
||||||
@@ -25,34 +25,34 @@ return {
|
|||||||
-- P10k rainbow style theme with solid backgrounds
|
-- P10k rainbow style theme with solid backgrounds
|
||||||
local theme = {
|
local theme = {
|
||||||
normal = {
|
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 },
|
b = { bg = colors.bg, fg = colors.cyan },
|
||||||
c = { bg = colors.bg_dark, fg = colors.green },
|
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 = {
|
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 },
|
b = { bg = colors.bg, fg = colors.cyan },
|
||||||
c = { bg = colors.bg_dark, fg = colors.green },
|
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 = {
|
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 },
|
b = { bg = colors.bg, fg = colors.cyan },
|
||||||
c = { bg = colors.bg_dark, fg = colors.green },
|
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 = {
|
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 },
|
b = { bg = colors.bg, fg = colors.cyan },
|
||||||
c = { bg = colors.bg_dark, fg = colors.green },
|
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 = {
|
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 },
|
b = { bg = colors.bg, fg = colors.cyan },
|
||||||
c = { bg = colors.bg_dark, fg = colors.green },
|
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 = {
|
inactive = {
|
||||||
a = { bg = colors.bg_dark, fg = colors.cyan },
|
a = { bg = colors.bg_dark, fg = colors.cyan },
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
"nvim-tree/nvim-tree.lua",
|
"nvim-tree/nvim-tree.lua",
|
||||||
dependencies = "nvim-tree/nvim-web-devicons",
|
dependencies = "ryanoasis/vim-devicons",
|
||||||
config = function()
|
config = function()
|
||||||
local nvimtree = require("nvim-tree")
|
local nvimtree = require("nvim-tree")
|
||||||
|
|
||||||
|
|||||||
@@ -32,10 +32,11 @@ return {
|
|||||||
{ "<leader>m", group = "Format" },
|
{ "<leader>m", group = "Format" },
|
||||||
{ "<leader>n", group = "Notifications" },
|
{ "<leader>n", group = "Notifications" },
|
||||||
{ "<leader>p", group = "Project" },
|
{ "<leader>p", group = "Project" },
|
||||||
{ "<leader>q", group = "Quickfix" },
|
{ "<leader>q", group = "Quit" },
|
||||||
{ "<leader>s", group = "Session/Split/Substitute" },
|
{ "<leader>s", group = "Session/Split/Substitute" },
|
||||||
{ "<leader>t", group = "Tab/Terminal/Text" },
|
{ "<leader>t", group = "Tab/Terminal/Text" },
|
||||||
{ "<leader>x", group = "Trouble/Diagnostics" },
|
{ "<leader>w", group = "Save" },
|
||||||
|
{ "<leader>x", group = "Trouble/Quickfix" },
|
||||||
{ "<leader>z", group = "Copilot Chat" },
|
{ "<leader>z", group = "Copilot Chat" },
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user