mirror of
https://github.com/kristoferssolo/runner.nvim.git
synced 2026-02-04 06:12:01 +00:00
Lint
This commit is contained in:
@@ -63,23 +63,23 @@ M.choice = function(handlers)
|
|||||||
end)
|
end)
|
||||||
actions.select_horizontal:replace(function()
|
actions.select_horizontal:replace(function()
|
||||||
local default_position = config.options.position
|
local default_position = config.options.position
|
||||||
config.options.position = 'bottom';
|
config.options.position = 'bottom'
|
||||||
|
|
||||||
actions.close(prompt_bufnr)
|
actions.close(prompt_bufnr)
|
||||||
local handler_name = action_state.get_selected_entry()[1]
|
local handler_name = action_state.get_selected_entry()[1]
|
||||||
handlers[handler_name](buffer)
|
handlers[handler_name](buffer)
|
||||||
|
|
||||||
config.options.position = default_position;
|
config.options.position = default_position
|
||||||
end)
|
end)
|
||||||
actions.select_vertical:replace(function()
|
actions.select_vertical:replace(function()
|
||||||
local default_position = config.options.position
|
local default_position = config.options.position
|
||||||
config.options.position = 'top';
|
config.options.position = 'top'
|
||||||
|
|
||||||
actions.close(prompt_bufnr)
|
actions.close(prompt_bufnr)
|
||||||
local handler_name = action_state.get_selected_entry()[1]
|
local handler_name = action_state.get_selected_entry()[1]
|
||||||
handlers[handler_name](buffer)
|
handlers[handler_name](buffer)
|
||||||
|
|
||||||
config.options.position = default_position;
|
config.options.position = default_position
|
||||||
end)
|
end)
|
||||||
return true
|
return true
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user