mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-06-03 03:21:36 +00:00
chore: use stylua for formatting (#1040)
* chore: stylua job and config * reformat with stylua
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user