diff options
| author | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2021-10-11 09:50:29 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2021-10-11 09:50:29 +0200 |
| commit | 923b5750e2fe96b23930ecdcd5e488b4c64b6b52 (patch) | |
| tree | 1f2cca10e91fa3306a7222f72f9a73674ab6ca6e /lua/alpha/telescope_laravel.lua | |
| parent | e019b5a3213e078358bdce1d098ec9eb939f16a8 (diff) | |
| parent | baa775734722374cbe8f633423c85e86fc3b2c2d (diff) | |
| download | nvim-conf-923b5750e2fe96b23930ecdcd5e488b4c64b6b52.tar.gz nvim-conf-923b5750e2fe96b23930ecdcd5e488b4c64b6b52.zip | |
Merge branch 'main' of github.com:adalessa/dotfiles
Diffstat (limited to 'lua/alpha/telescope_laravel.lua')
| -rw-r--r-- | lua/alpha/telescope_laravel.lua | 10 |
1 files changed, 5 insertions, 5 deletions
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', '<cr>', 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 |