remove bat env theme variable (#489)

This commit is contained in:
Raphael
2021-02-02 20:39:01 +08:00
committed by GitHub
parent c422d86eb9
commit feacafacbc

View File

@@ -38,7 +38,6 @@ local bat_maker = function(filename, lnum, start, finish)
end end
local command = {"bat"} local command = {"bat"}
local theme = os.getenv("BAT_THEME")
if lnum then if lnum then
table.insert(command, { "--highlight-line", lnum}) table.insert(command, { "--highlight-line", lnum})
@@ -56,10 +55,6 @@ local bat_maker = function(filename, lnum, start, finish)
end end
end end
if theme ~= nil then
table.insert(command, { "--theme", string.format("%s", vim.fn.shellescape(theme)) })
end
return flatten { return flatten {
command, bat_options, "--", vim.fn.expand(filename) command, bat_options, "--", vim.fn.expand(filename)
} }