Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supress overlaping if statement #52

Closed
smsjr opened this issue Feb 5, 2024 · 3 comments
Closed

Supress overlaping if statement #52

smsjr opened this issue Feb 5, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@smsjr
Copy link

smsjr commented Feb 5, 2024

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
Copy link
Owner

b0o commented Feb 7, 2024

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

@b0o b0o added the enhancement New feature or request label Feb 9, 2024
@b0o
Copy link
Owner

b0o commented Apr 3, 2024

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,
    },
  },
}

@b0o b0o closed this as completed Apr 3, 2024
@smsjr
Copy link
Author

smsjr commented Apr 4, 2024

Perfect, @b0o! Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants