diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2021-07-23 17:42:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-23 11:42:37 -0400 |
| commit | 79644ab67731c7ba956c354bf0545282f34e10cc (patch) | |
| tree | e65dbf73b3442ab1aa9fc59fc56a35b4c9edf1e0 /lua/telescope/actions/state.lua | |
| parent | 664690029fdb302bee8d3f27a458383e8477add7 (diff) | |
chore: use stylua for formatting (#1040)
* chore: stylua job and config
* reformat with stylua
Diffstat (limited to 'lua/telescope/actions/state.lua')
| -rw-r--r-- | lua/telescope/actions/state.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lua/telescope/actions/state.lua b/lua/telescope/actions/state.lua index 192c44d..0be2c3f 100644 --- a/lua/telescope/actions/state.lua +++ b/lua/telescope/actions/state.lua @@ -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() |
