From ce0dbd3d2d98f6f3f12e0a1fb1c183479e7f52c0 Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Mon, 16 Jun 2025 21:41:14 -0400 Subject: [PATCH] Add leader option to config --- lua/surround-ui/config.lua | 1 + lua/surround-ui/init.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/surround-ui/config.lua b/lua/surround-ui/config.lua index a160f2d..30181ab 100644 --- a/lua/surround-ui/config.lua +++ b/lua/surround-ui/config.lua @@ -2,6 +2,7 @@ local M = {} M.options = { root_key = "S", + leader_key = "" } return M diff --git a/lua/surround-ui/init.lua b/lua/surround-ui/init.lua index 5511fe8..934934f 100644 --- a/lua/surround-ui/init.lua +++ b/lua/surround-ui/init.lua @@ -48,7 +48,7 @@ local function setup_commands() abbreviated_and_grammar_targets[k] = v end - local prefix = "" .. config.options.root_key + local prefix = config.options.leader_key .. config.options.root_key local mappings = { { prefix, group = "Surround" }, }