summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorRaphael <glepnir@gopherhub.org>2021-02-02 20:39:01 +0800
committerGitHub <noreply@github.com>2021-02-02 20:39:01 +0800
commitfeacafacbcd7fe2ae6538d1839c1257e54762519 (patch)
treeb26f8378674cc3994bb93379a2eea08659824909 /lua
parentc422d86eb9c262606534754b5f4ee79bd01ae09a (diff)
remove bat env theme variable (#489)
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/previewers/term_previewer.lua5
1 files changed, 0 insertions, 5 deletions
diff --git a/lua/telescope/previewers/term_previewer.lua b/lua/telescope/previewers/term_previewer.lua
index c402b4a..cf4690b 100644
--- a/lua/telescope/previewers/term_previewer.lua
+++ b/lua/telescope/previewers/term_previewer.lua
@@ -38,7 +38,6 @@ local bat_maker = function(filename, lnum, start, finish)
end
local command = {"bat"}
- local theme = os.getenv("BAT_THEME")
if lnum then
table.insert(command, { "--highlight-line", lnum})
@@ -56,10 +55,6 @@ local bat_maker = function(filename, lnum, start, finish)
end
end
- if theme ~= nil then
- table.insert(command, { "--theme", string.format("%s", vim.fn.shellescape(theme)) })
- end
-
return flatten {
command, bat_options, "--", vim.fn.expand(filename)
}