b0o / incline.nvim

🎈 Floating statuslines for Neovim, winbar alternative
MIT License
759 stars 14 forks source link

Supress overlaping if statement #52

Closed smsjr closed 4 months ago

smsjr commented 6 months ago

How can I suppress the below overlaping if statement in 'winline.lua' config file? I use lspsaga and I'd like to align incline at the same line of the lspsaga breadcumb. This is prevent achieving this...

if cw.margin.vertical.top == 0 and (vim.o.laststatus ~= 3 or a.nvim_win_get_position(self.target_win)[1] <= 1) then return 1 end

Removing this statement, I can get this (not overlaping tab bar):

incline_top-margin

Thx in advance!

b0o commented 6 months ago

It will be possible to overlap the winbar when #44 is merged.

b0o commented 4 months ago

It's now possible to overlap the winbar:

require("incline").setup {
  window = {
    margin = { horizontal = 0, vertical = 0 },
    placement = { horizontal = 'right', vertical = 'top' },
    overlap = {
      winbar = true,
      borders = true,
      statusline = true,
      tabline = false,
    },
  },
}
smsjr commented 4 months ago

Perfect, @b0o! Thanks a lot!