2022-04-04 01:10:26 +02:00
|
|
|
local M = {}
|
|
|
|
|
2022-09-09 00:16:11 +02:00
|
|
|
function M.localAbbr(lhs, rhs)
|
|
|
|
-- Create abbreviation
|
|
|
|
vim.cmd(":iabbrev <buffer>" .. lhs .. " " .. rhs)
|
|
|
|
end
|
|
|
|
|
|
|
|
function M.manyLocalAbbr(abbreviations)
|
|
|
|
for _, value in pairs(abbreviations) do
|
|
|
|
M.localAbbr(value[1], value[2])
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2022-04-04 01:10:26 +02:00
|
|
|
function M.abbr(lhs, rhs)
|
2022-09-09 00:16:11 +02:00
|
|
|
-- Create abbreviation
|
|
|
|
vim.cmd(":iabbrev " .. lhs .. " " .. rhs)
|
2022-04-04 01:10:26 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
return M
|