From f8641b4a1983b34021f76764c79aa5b9e8fb7955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Mon, 22 Jan 2024 12:41:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20ux(nvim):=20vscode=20extra=20now?= =?UTF-8?q?=20changes=20flash=20highlights?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/plugins/extras/util/vscode.lua | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/plugins/extras/util/vscode.lua b/.config/nvim/lua/plugins/extras/util/vscode.lua index 274b74ce..c42adfef 100644 --- a/.config/nvim/lua/plugins/extras/util/vscode.lua +++ b/.config/nvim/lua/plugins/extras/util/vscode.lua @@ -57,8 +57,6 @@ vim.api.nvim_create_autocmd("User", { map("n", "", "Find") -- find in files map("n", "/", vscode_action("workbench.action.findInFiles")) - -- open symbol - map("n", "ss", vscode_action("workbench.action.gotoSymbol")) -- view problems map("n", "xx", vscode_action("workbench.actions.view.problems")) -- open file explorer @@ -138,6 +136,8 @@ vim.api.nvim_create_autocmd("User", { -- diagnostics map("n", "]d", vscode_action("editor.action.marker.next")) map("n", "[d", vscode_action("editor.action.marker.prev")) + -- whichkey + map("n", "", vscode_action("whichkey.show")) 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, + }, }