summaryrefslogtreecommitdiff
path: root/lua/telescope/previewers.lua
diff options
context:
space:
mode:
authoreth3lbert <eth3lbert+dev@gmail.com>2020-12-15 16:26:05 +0800
committerGitHub <noreply@github.com>2020-12-15 09:26:05 +0100
commitaf8d990c2cc19577f9503fae29c59d256e304bee (patch)
tree0be5311eb4f5274ef816fdc3e55459d968be905e /lua/telescope/previewers.lua
parentdfeebffd93ecf4a6abac29c078ca58ddf6bf107c (diff)
fix: typo (#339)
Diffstat (limited to 'lua/telescope/previewers.lua')
-rw-r--r--lua/telescope/previewers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/previewers.lua b/lua/telescope/previewers.lua
index 5d64d04..9344b2f 100644
--- a/lua/telescope/previewers.lua
+++ b/lua/telescope/previewers.lua
@@ -23,7 +23,7 @@ Previewer.__index = Previewer
-- TODO: Should play with these some more, ty @clason
local bat_options = {"--style=plain", "--color=always", "--paging=always"}
-local has_less = (vim.fn.executable('less') == 1) and conf.has_less
+local has_less = (vim.fn.executable('less') == 1) and conf.use_less
local termopen_env = vim.tbl_extend("force", { ['GIT_PAGER'] = (has_less and 'less' or '') }, conf.set_env)
-- TODO(conni2461): Workaround for neovim/neovim#11751. Add only quotes when using else branch.