From baa775734722374cbe8f633423c85e86fc3b2c2d Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Mon, 11 Oct 2021 07:55:35 +0200 Subject: Common changes --- lua/alpha/telescope_laravel.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lua/alpha/telescope_laravel.lua') diff --git a/lua/alpha/telescope_laravel.lua b/lua/alpha/telescope_laravel.lua index 1e4fa28..b1fc3c4 100644 --- a/lua/alpha/telescope_laravel.lua +++ b/lua/alpha/telescope_laravel.lua @@ -28,15 +28,15 @@ local mt_string_entry = { end, } -laravel.artisan = function(opts) +laravel.artisan = function() local results = utils.get_os_command_output({ "php", "artisan", "--raw", - }, opts.cwd) + }) - pickers.new(opts, { + pickers.new({}, { prompt_title = "Artisan commands", finder = finders.new_table { results = results, @@ -62,12 +62,12 @@ laravel.artisan = function(opts) }) end, }, - sorter = conf.file_sorter(opts), + sorter = conf.file_sorter(), attach_mappings = function (_, map) map('i', '', function(prompt_bufnr) local entry = action_state.get_selected_entry() actions.close(prompt_bufnr) - vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes(":Artisan " .. entry.value, true, false, true), "t", true) + vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes(":Artisan " .. entry.value .. " ", true, false, true), "t", true) end) return true end -- cgit v1.2.3