Skip to content

Commit f2b7c77

Browse files
author
Sebastian Flügge
committed
style: reformat with stylua
1 parent a09ae41 commit f2b7c77

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

lua/telescope-orgmode/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function M.init_opts(opts, prompt_titles, default_state)
1212
opts = vim.tbl_extend('force', M.opts, opts or {})
1313
opts.mode = opts.mode or default_state
1414
if not prompt_titles[opts.mode] then
15-
error("Invalid mode '" .. opts.mode .. "'. Valid modes are: " .. table.concat(vim.tbl_keys(prompt_titles), ", "))
15+
error("Invalid mode '" .. opts.mode .. "'. Valid modes are: " .. table.concat(vim.tbl_keys(prompt_titles), ', '))
1616
end
1717
opts.prompt_titles = prompt_titles
1818
opts.states = {}

lua/telescope-orgmode/entry_maker/headlines.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ M.make_entry = function(opts)
4141
---@param entry MatchEntry
4242
local function make_display(entry)
4343
return displayer({
44-
{entry.location, "TelescopeResultsComment"},
45-
{entry.tags, "@org.tag"},
46-
{entry.line, "@org.headline.level"..entry.headline_level},
44+
{ entry.location, 'TelescopeResultsComment' },
45+
{ entry.tags, '@org.tag' },
46+
{ entry.line, '@org.headline.level' .. entry.headline_level },
4747
})
4848
end
4949

@@ -64,7 +64,7 @@ M.make_entry = function(opts)
6464
location = location,
6565
line = line,
6666
tags = tags,
67-
headline_level = headline.level
67+
headline_level = headline.level,
6868
}
6969
end
7070
end

lua/telescope-orgmode/picker/insert_link.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ return function(opts)
1111
opts = config.init_opts(opts, {
1212
headlines = 'Insert link to headline',
1313
orgfiles = 'Insert link to org file',
14-
}, "headlines")
14+
}, 'headlines')
1515

1616
pickers
1717
.new(opts, {

lua/telescope-orgmode/picker/refile_heading.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ return function(opts)
1212
opts = config.init_opts(opts, {
1313
headlines = 'Refile to headline',
1414
orgfiles = 'Refile to orgfile',
15-
}, "headlines")
15+
}, 'headlines')
1616

1717
local closest_headline = org.get_closest_headline()
1818

lua/telescope-orgmode/picker/search_headings.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ return function(opts)
99
opts = config.init_opts(opts, {
1010
headlines = 'Search headlines',
1111
orgfiles = 'Search org files',
12-
}, "headlines")
12+
}, 'headlines')
1313

1414
-- Capture the current buffer before opening telescope
1515
opts.original_buffer = vim.api.nvim_get_current_buf()

0 commit comments

Comments
 (0)