From 9f4b0faae411667f3066d7235e2b67f55923dbe6 Mon Sep 17 00:00:00 2001 From: JINNOUCHI Yasushi Date: Sun, 24 Mar 2024 16:50:08 +0900 Subject: [PATCH] docs: add instructions to launch frecency via Lua (#188) fix #185 --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 836c0ba..57e5a5c 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,12 @@ imported. or to map to a key: ```lua +-- Bind command vim.keymap.set("n", "", "Telescope frecency") +-- Bind Lua function directly +vim.keymap.set("n", "", function() + require("telescope").extensions.frecency.frecency {} +end) ``` Use a specific workspace tag: @@ -135,7 +140,14 @@ Use a specific workspace tag: or ```lua +-- Bind command vim.keymap.set("n", "", "Telescope frecency workspace=CWD") +-- Bind Lua function directly +vim.keymap.set("n", "", function() + require("telescope").extensions.frecency.frecency { + workspace = "CWD", + } +end) ``` Filter tags are applied by typing the `:tag:` name (adding surrounding colons)