diff --git a/README.md b/README.md index 06638b8..a0291ad 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,8 @@ require('possession').setup { load = { n = '', i = '' }, delete = { n = '', i = '' }, rename = { n = '', i = '' }, + grep = { n = '', i = '' }, + find = { n = '', i = '' }, }, }, }, diff --git a/lua/possession/telescope.lua b/lua/possession/telescope.lua index 0de4162..5249477 100644 --- a/lua/possession/telescope.lua +++ b/lua/possession/telescope.lua @@ -63,17 +63,17 @@ local session_actions = { end, grep = function(prompt_buf, entry, refresh) actions.close(prompt_buf) - require('telescope.builtin').live_grep({ + require('telescope.builtin').live_grep { cwd = entry.value.cwd, prompt_title = ('Live Grep (%s)'):format(entry.value.name), - }) + } end, find = function(prompt_buf, entry, refresh) actions.close(prompt_buf) - require('telescope.builtin').find_files({ + require('telescope.builtin').find_files { cwd = entry.value.cwd, prompt_title = ('Find Files (%s)'):format(entry.value.name), - }) + } end, }