🎨 ux(nvim): vscode extra now changes flash highlights
This commit is contained in:
parent
27fa66bab1
commit
f8641b4a19
1 changed files with 13 additions and 2 deletions
|
@ -57,8 +57,6 @@ vim.api.nvim_create_autocmd("User", {
|
||||||
map("n", "<leader><space>", "<cmd>Find<cr>")
|
map("n", "<leader><space>", "<cmd>Find<cr>")
|
||||||
-- find in files
|
-- find in files
|
||||||
map("n", "<leader>/", vscode_action("workbench.action.findInFiles"))
|
map("n", "<leader>/", vscode_action("workbench.action.findInFiles"))
|
||||||
-- open symbol
|
|
||||||
map("n", "<leader>ss", vscode_action("workbench.action.gotoSymbol"))
|
|
||||||
-- view problems
|
-- view problems
|
||||||
map("n", "<leader>xx", vscode_action("workbench.actions.view.problems"))
|
map("n", "<leader>xx", vscode_action("workbench.actions.view.problems"))
|
||||||
-- open file explorer
|
-- open file explorer
|
||||||
|
@ -138,6 +136,8 @@ vim.api.nvim_create_autocmd("User", {
|
||||||
-- diagnostics
|
-- diagnostics
|
||||||
map("n", "]d", vscode_action("editor.action.marker.next"))
|
map("n", "]d", vscode_action("editor.action.marker.next"))
|
||||||
map("n", "[d", vscode_action("editor.action.marker.prev"))
|
map("n", "[d", vscode_action("editor.action.marker.prev"))
|
||||||
|
-- whichkey
|
||||||
|
map("n", "<leader>", vscode_action("whichkey.show"))
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -159,4 +159,15 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"folke/flash.nvim",
|
||||||
|
init = function()
|
||||||
|
local palette = require("catppuccin.palettes").get_palette("macchiato")
|
||||||
|
local bg = palette.none
|
||||||
|
vim.api.nvim_set_hl(0, "FlashBackdrop", { fg = bg })
|
||||||
|
vim.api.nvim_set_hl(0, "FlashLabel", { fg = palette.green, bg = bg, bold = true })
|
||||||
|
vim.api.nvim_set_hl(0, "FlashMatch", { fg = palette.lavender, bg = bg })
|
||||||
|
vim.api.nvim_set_hl(0, "FlashCurrent", { fg = palette.peach, bg = bg })
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue