home: vim: fix lua formatting

This commit is contained in:
Bruno BELANYI 2023-05-06 18:58:30 +01:00
parent c2d231d3f1
commit 1e9f6fe957
9 changed files with 19 additions and 18 deletions

View file

@ -3,15 +3,15 @@ if not require("ambroisie.utils").is_ssh() then
end
local function copy(lines, _)
require('osc52').copy(table.concat(lines, '\n'))
require("osc52").copy(table.concat(lines, "\n"))
end
local function paste()
return {vim.fn.split(vim.fn.getreg(''), '\n'), vim.fn.getregtype('')}
return { vim.fn.split(vim.fn.getreg(""), "\n"), vim.fn.getregtype("") }
end
vim.g.clipboard = {
name = 'osc52',
copy = {['+'] = copy, ['*'] = copy},
paste = {['+'] = paste, ['*'] = paste},
name = "osc52",
copy = { ["+"] = copy, ["*"] = copy },
paste = { ["+"] = paste, ["*"] = paste },
}