mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 19:34:15 +00:00
remove unused function
This commit is contained in:
parent
b9ad455e13
commit
ac8132991f
1 changed files with 0 additions and 13 deletions
|
@ -14,19 +14,6 @@ local Loader = require("lazy.core.loader")
|
||||||
---@class LazyKeysHandler:LazyHandler
|
---@class LazyKeysHandler:LazyHandler
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
---@param feed string
|
|
||||||
function M.replace_special(feed)
|
|
||||||
for special, key in pairs({ leader = vim.g.mapleader or "\\", localleader = vim.g.maplocalleader or "\\" }) do
|
|
||||||
local pattern = "<"
|
|
||||||
for i = 1, #special do
|
|
||||||
pattern = pattern .. "[" .. special:sub(i, i) .. special:upper():sub(i, i) .. "]"
|
|
||||||
end
|
|
||||||
pattern = pattern .. ">"
|
|
||||||
feed = feed:gsub(pattern, key)
|
|
||||||
end
|
|
||||||
return feed
|
|
||||||
end
|
|
||||||
|
|
||||||
---@param value string|LazyKeys
|
---@param value string|LazyKeys
|
||||||
function M.parse(value)
|
function M.parse(value)
|
||||||
local ret = vim.deepcopy(value)
|
local ret = vim.deepcopy(value)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue