style: run stylua

This commit is contained in:
Thomas Lambert
2022-09-28 22:35:11 +02:00
parent 74636e7416
commit 74ba88dd98
5 changed files with 57 additions and 64 deletions

View File

@@ -433,11 +433,8 @@ function strwalker:match(s)
end
function strwalker:__call(s, f) -- print("strwalker:__call "..s..self:aimchr())
local is, ie
is, ie, self[1], self[2], self[3], self[4], self[5] = find(
self.s,
s,
self.i
)
is, ie, self[1], self[2], self[3], self[4], self[5] =
find(self.s, s, self.i)
if is then
self.e, self.i = self.i, 1 + ie
if f then

View File

@@ -97,12 +97,8 @@ M.generate_backlink_map = function(opts)
link_counts[note_fn] = link_counts[note_fn] + 1
-- and: inc the backlinks of the linked note
local fexists, backlinked_file = resolve_link(
linktitle,
file_list,
subdir_list,
opts
)
local fexists, backlinked_file =
resolve_link(linktitle, file_list, subdir_list, opts)
-- print(
-- "note for link `"
-- .. linktitle

View File

@@ -146,8 +146,7 @@ M.do_find_all_tags = function(opts)
local cmd, args = command_find_all_tags(opts)
--print(cmd .. " " .. vim.inspect(args))
local ret = {}
local _ = Job
:new({
local _ = Job:new({
command = cmd,
args = args,
enable_recording = true,
@@ -164,8 +163,7 @@ M.do_find_all_tags = function(opts)
on_stderr = function(err, data, _)
print("error: " .. tostring(err) .. "data: " .. data)
end,
})
:sync()
}):sync()
-- print("final results: " .. vim.inspect(ret))
return ret
end

View File

@@ -12,7 +12,8 @@ local vaults = function(telekasten, opts)
for k, v in pairs(vaults) do
table.insert(_vaults, { k, v })
end
pickers.new(opts, {
pickers
.new(opts, {
prompt_title = "Vaults",
finder = finders.new_table({
results = _vaults,
@@ -34,7 +35,8 @@ local vaults = function(telekasten, opts)
end)
return true
end,
}):find()
})
:find()
end
M.vaults = vaults