From 3ee2552b947ce31ef5101a1c32f755853ba23dec 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 | 13 +++++++++++++ 2 files changed, 18 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..e1d8cf69b --- /dev/null +++ b/lua/astrocommunity/editing-support/quick-scope/init.lua @@ -0,0 +1,13 @@ +return { + { + "unblevable/quick-scope", + keys = { "f", "F", "t", "T" }, + dependencies = { + "AstroNvim/astrocore", + opts = function(_, opts) + if not opts.mappings then opts.mappings = {} end + opts.options.g["qs_highlight_on_keys"] = { "f", "F", "t", "T" } + end, + }, + }, +}