1
Fork 0
satellite/home/features/neovim/config/lua/my/abbreviations/init.lua
Matei Adriel a39544b93d
Change a lot of neovim stuff
and remove some outdated firefox profiles
2024-01-04 05:24:55 +01:00

31 lines
582 B
Lua

local M = {}
M.no_capitalization = { capitalized = false }
function M.localAbbr(lhs, rhs)
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
function M.abbr(lhs, rhs)
-- Create abbreviation
vim.cmd(":iabbrev " .. lhs .. " " .. rhs)
end
function M.manyGlobalAbbr(abbreviations)
for _, value in pairs(abbreviations) do
M.abbr(value[1], value[2])
end
end
function M.setup()
require("my.abbreviations.global").setup()
end
return M