home: vim: fix lua formatting
This commit is contained in:
parent
c2d231d3f1
commit
1e9f6fe957
9 changed files with 19 additions and 18 deletions
|
|
@ -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 },
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue