style: make stylua happy

This commit is contained in:
Thomas Lambert
2023-04-28 23:02:17 +02:00
parent 88d9344b41
commit 05caa03bdd
7 changed files with 2866 additions and 2866 deletions

View File

@@ -8,37 +8,37 @@ local conf = require("telescope.config").values
-- Pick between the various configured vaults
function M.vaults(telekasten, opts)
opts = opts or {}
local vaults = telekasten.vaults
local _vaults = {}
for k, v in pairs(vaults) do
table.insert(_vaults, { k, v })
end
pickers
.new(opts, {
prompt_title = "Vaults",
finder = finders.new_table({
results = _vaults,
entry_maker = function(entry)
return {
value = entry,
display = entry[1],
ordinal = entry[1],
}
end,
}),
sorter = conf.generic_sorter(opts),
attach_mappings = function(prompt_bufnr, map)
actions.select_default:replace(function()
actions.close(prompt_bufnr)
local selection = action_state.get_selected_entry()
-- print(vim.inspect(selection))
telekasten.chdir(selection.value[2])
end)
return true
end,
})
:find()
opts = opts or {}
local vaults = telekasten.vaults
local _vaults = {}
for k, v in pairs(vaults) do
table.insert(_vaults, { k, v })
end
pickers
.new(opts, {
prompt_title = "Vaults",
finder = finders.new_table({
results = _vaults,
entry_maker = function(entry)
return {
value = entry,
display = entry[1],
ordinal = entry[1],
}
end,
}),
sorter = conf.generic_sorter(opts),
attach_mappings = function(prompt_bufnr, map)
actions.select_default:replace(function()
actions.close(prompt_bufnr)
local selection = action_state.get_selected_entry()
-- print(vim.inspect(selection))
telekasten.chdir(selection.value[2])
end)
return true
end,
})
:find()
end
return M