mirror of
https://github.com/kristoferssolo/runner.nvim.git
synced 2025-10-21 19:50:34 +00:00
Lint
This commit is contained in:
parent
46545bbdb6
commit
c2deea1515
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user