Skip to content

Commit

Permalink
fix: respect g:glow_binary_path
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishbinu committed Oct 17, 2021
1 parent ae61bac commit 09640e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/glow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ local function open_window(path)
api.nvim_buf_set_keymap(buf, "n", "<Esc>", ":lua require('glow').close_window()<cr>",
{noremap = true, silent = true})

vim.fn.termopen(string.format("glow %s", vim.fn.shellescape(path)))
vim.fn.termopen(string.format("%s/glow %s", bin_path, vim.fn.shellescape(path)))
end

function M.glow(file)
Expand Down

0 comments on commit 09640e9

Please sign in to comment.