format&lint

This commit is contained in:
hrsh7th
2021-10-10 14:04:39 +09:00
parent f4c33ac7a9
commit 20aa77b492
2 changed files with 2 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
local buffer = {}
buffer.ensure = setmetatable({
cache = {}
cache = {},
}, {
__call = function(self, name)
if not (self.cache[name] and vim.api.nvim_buf_is_valid(self.cache[name])) then
@@ -11,7 +11,7 @@ buffer.ensure = setmetatable({
self.cache[name] = buf
end
return self.cache[name]
end
end,
})
return buffer