ellisonleao / glow.nvim

A markdown preview directly in your neovim.
MIT License
1.27k stars 53 forks source link

Not working on macOS #113

Closed raguay closed 1 year ago

raguay commented 1 year ago

Hi,

I just installed this plugin, but it just shows an empty box on the screen. Glow works great on the command line, but not in the plugin. I'm using LazyVim with a special config file:

-- every spec file under config.plugins will be loaded automatically by lazy.nvim
--
-- In your plugin files, you can:
-- * add extra plugins
-- * disable/enabled LazyVim plugins
-- * override the configuration of LazyVim plugins
return {

  {
    "ellisonleao/glow.nvim",
    config = function()
      require("glow").setup({ glow_path = "/opt/homebrew/bin/glow" })
    end,
    cmd = "Glow",
  },
}

I'm running nvim nightly using the bob installer.

nikbrunner commented 1 year ago

Same here.

My setup

Version: NVIM v0.9.0-dev-2185+gd34c64e34-dirty

Config:

---@type LazySpec
local spec = {
    "ellisonleao/glow.nvim",
    cmd = "Glow",
    opts = {
        glow_path = "", -- will be filled automatically with your glow bin in $PATH, if any
        install_path = "/opt/homebrew/bin/glow", -- default path for installing glow binary
        border = "shadow", -- floating window border config
        style = "dark|light", -- filled automatically with your current editor background, you can override using glow json style
        pager = false,
        width = 80,
        height = 100,
        width_ratio = 0.7, -- maximum width of the Glow window compared to the nvim window size (overrides `width`)
        height_ratio = 0.7,
    },
    config = function(_, opts)
        require("glow").setup(opts)
    end,
}

return spec

Screenshot

Screenshot 2023-02-24 at 15 16 27
gilbertwong96 commented 1 year ago

I have the same issue

softinio commented 1 year ago

I have the same issue 😢

fakeyanss commented 1 year ago

+1, same issue.

knutwalker commented 1 year ago

I had the same issue and it looks like it's the same reason as in #112.

I downgraded to 1.4.1 via homebrew:

brew tap-new local/glow-for-nvim # or some other tap name you want to use
brew extract --version=1.4.1 glow local/glow-for-nvim
brew install local/glow-for-nvim/glow@1.4.1

and then configure this plugin (with Lazy) as

{
    "ellisonleao/glow.nvim",
    cmd = "Glow",
    opts = {
        glow_path = "/opt/homebrew/bin/glow@1.4.1",
    },
},
ellisonleao commented 1 year ago

Please rollback to glow 1.4.1 version until https://github.com/ellisonleao/glow.nvim/pull/107 is merged. Thanks!