chore: use stylua for formatting (#1040)

* chore: stylua job and config

* reformat with stylua
This commit is contained in:
Simon Hauser
2021-07-23 17:42:37 +02:00
committed by GitHub
parent 664690029f
commit 79644ab677
75 changed files with 3201 additions and 2809 deletions
+6 -6
View File
@@ -6,19 +6,19 @@
--- Generally used from within other |telescope.actions|
---@brief ]]
local global_state = require('telescope.state')
local conf = require('telescope.config').values
local global_state = require "telescope.state"
local conf = require("telescope.config").values
local action_state = {}
--- Get the current entry
function action_state.get_selected_entry()
return global_state.get_global_key('selected_entry')
return global_state.get_global_key "selected_entry"
end
--- Gets the current line
function action_state.get_current_line()
return global_state.get_global_key('current_line')
return global_state.get_global_key "current_line"
end
--- Gets the current picker
@@ -38,10 +38,10 @@ function action_state.select_key_to_edit_key(type)
end
function action_state.get_current_history()
local history = global_state.get_global_key("history")
local history = global_state.get_global_key "history"
if not history then
if conf.history == false or type(conf.history) ~= "table" then
history = require('telescope.actions.history').get_simple_history()
history = require("telescope.actions.history").get_simple_history()
global_state.set_global_key("history", history)
else
history = conf.history.handler()