nyngwang / NeoZoom.lua

A simple usecase of floating window to help you focus.
MIT License
184 stars 15 forks source link

Setting custom border does not seem to work #77

Closed gstokkink closed 1 year ago

gstokkink commented 1 year ago

Hi,

First of all, thanks for your work on this plugin! It's very useful to me.

I noticed that in a fairly recent commit, you added the possibility for custom border styling: https://github.com/nyngwang/NeoZoom.lua/commit/890c7a55ffe584cbd93e6edc47185ca489028eb3. However, when I try to set a custom border, it always defaults to the double style.

My setup looks like follows (I'm using lazy.nvim):

-- Zoom current pane
return {
  'nyngwang/NeoZoom.lua',
  opts = {
    winopts = {
      offset = {
        width = 0.85,
        height = 0.85,
      },
      border = { '╭', '─', '╮', '│', '╯', '─', '╰', '│' },
    },
  },
}

The result looks like this:

image

Note that using border = 'single' does work:

image

As an aside, is there any way to configure the background color of the zoomed window?

nyngwang commented 1 year ago

Hi, firstly thanks for your detailed report! I will try to fix it this week!

nyngwang commented 1 year ago

@gstokkink Lol, I accidentally removed the merged lines in e00ba6e, let me fix it now!

Let me know if the problem would persist! (issue auto-closed by commit message, feel free to reopen when needed!) (I just tested it locally and it works for me.)