diff options
| author | anott03 <amitav_nott@ryecountryday.org> | 2021-07-14 13:25:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-14 19:25:00 +0200 |
| commit | df579bac425e4b6b69a0c8e694b154610cd5420b (patch) | |
| tree | fc4eb1bcbeeabe199bd997757bd72892fb4c07a0 /lua/telescope/previewers/term_previewer.lua | |
| parent | a4896e5ef39a8006a8251d48d4cf24aac81a4f94 (diff) | |
refactor: move from telescope.path to plenary.path (#473)
This will deprecate telescope.path, we will remove it soon. Please move over to plenary.path
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
Diffstat (limited to 'lua/telescope/previewers/term_previewer.lua')
| -rw-r--r-- | lua/telescope/previewers/term_previewer.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lua/telescope/previewers/term_previewer.lua b/lua/telescope/previewers/term_previewer.lua index 299b52e..a7a0f72 100644 --- a/lua/telescope/previewers/term_previewer.lua +++ b/lua/telescope/previewers/term_previewer.lua @@ -1,6 +1,6 @@ local conf = require('telescope.config').values local utils = require('telescope.utils') -local path = require('telescope.path') +local Path = require('plenary.path') local putils = require('telescope.previewers.utils') local from_entry = require('telescope.from_entry') local Previewer = require('telescope.previewers.previewer') @@ -239,7 +239,7 @@ previewers.cat = defaulter(function(opts) return previewers.new_termopen_previewer { title = "File Preview", dyn_title = function(_, entry) - return path.normalize(from_entry.path(entry, true), cwd) + return Path:new(from_entry.path(entry, true)):normalize(cwd) end, get_command = function(entry) @@ -260,7 +260,7 @@ previewers.vimgrep = defaulter(function(opts) return previewers.new_termopen_previewer { title = "Grep Preview", dyn_title = function(_, entry) - return path.normalize(from_entry.path(entry, true), cwd) + return Path:new(from_entry.path(entry, true)):normalize(cwd) end, get_command = function(entry, status) @@ -293,7 +293,7 @@ previewers.qflist = defaulter(function(opts) return previewers.new_termopen_previewer { title = "Grep Preview", dyn_title = function(_, entry) - return path.normalize(from_entry.path(entry, true), cwd) + return Path:new(from_entry.path(entry, true)):normalize(cwd) end, get_command = function(entry, status) |
