From 44c3f4a6acf6dcf9fda333c6b2b7be909b05f033 Mon Sep 17 00:00:00 2001 From: Axel Calixte Date: Mon, 24 Feb 2025 20:02:45 +0100 Subject: [PATCH] feat(editing-support): adds unblevable/quick-scope --- .../editing-support/quick-scope/README.md | 5 +++++ .../editing-support/quick-scope/init.lua | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 lua/astrocommunity/editing-support/quick-scope/README.md create mode 100644 lua/astrocommunity/editing-support/quick-scope/init.lua diff --git a/lua/astrocommunity/editing-support/quick-scope/README.md b/lua/astrocommunity/editing-support/quick-scope/README.md new file mode 100644 index 000000000..53c0b6ff4 --- /dev/null +++ b/lua/astrocommunity/editing-support/quick-scope/README.md @@ -0,0 +1,5 @@ +# quick-scope + +Visual guides on current line for f and t motions. + +**Repository:** diff --git a/lua/astrocommunity/editing-support/quick-scope/init.lua b/lua/astrocommunity/editing-support/quick-scope/init.lua new file mode 100644 index 000000000..3a38ba0b4 --- /dev/null +++ b/lua/astrocommunity/editing-support/quick-scope/init.lua @@ -0,0 +1,15 @@ +return { + { + "unblevable/quick-scope", + keys = { "f", "F", "t", "T" }, + dependencies = { + "AstroNvim/astrocore", + opts = function(_, opts) + if not opts.options then opts.options = {} end + opts.options.g["qs_highlight_on_keys"] = { "f", "F", "t", "T" } + if not opts.mappings then opts.mappings = {} end + opts.mappings.n["uq"] = { "QuickScopeToggle", desc = "Toggle quick-scope" } + end, + }, + }, +}