mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
style: run stylua
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user