williamboman / mason.nvim

Portable package manager for Neovim that runs everywhere Neovim runs. Easily install and manage LSP servers, DAP servers, linters, and formatters.
Apache License 2.0
7.22k stars 258 forks source link

Mason overlaps statusline due to incorrect bottom padding when using `border = "rounded"` #1678

Open shreyas-a-s opened 2 months ago

shreyas-a-s commented 2 months ago

I've searched open issues for similar requests

I've recently downloaded the latest plugin version of mason.nvim

Problem description

Bottom window padding of mason window when the border corners are set to `rounded' using the below code is a bit small so that it overlaps status line (lualine in my case).

require("mason").setup({
  ui = {
    border = "rounded",
  },
})

Expected behavior

Mason bottom padding should be a bit more so that it doesn't overlap status line.

Steps to reproduce

  1. Configure mason like this:
    require("mason").setup({
    ui = {
    border = "rounded",
    },
    })
  2. Relaunch nvim.
  3. Open mason and see that mason overlaps status line.

Neovim version (>= 0.7)

NVIM v0.9.5 Build type: Release LuaJIT 2.1.1710088188

Operating system/version

Linux 6.1.0-18-amd64 Debian 6.1.76-1 x86_64 GNU/Linux (Debian 12 Bookworm)

Healthcheck output

==============================================================================
mason: require("mason.health").check()

mason.nvim ~
- OK mason.nvim version v1.10.0
- OK PATH: prepend
- OK Providers: 
  mason.providers.registry-api
  mason.providers.client
- OK neovim version >= 0.7.0

mason.nvim [Registries] ~
- OK Registry `github.com/mason-org/mason-registry version: 2024-04-10-thin-name` is installed.

mason.nvim [Core utils] ~
- OK unzip: `UnZip 6.00 of 20 April 2009, by Debian. Original by Info-ZIP.`
- OK wget: `GNU Wget 1.21.3 built on linux-gnu.`
- OK curl: `curl 7.88.1 (x86_64-pc-linux-gnu) libcurl/7.88.1 OpenSSL/3.0.11 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.3 libpsl/0.21.2 (+libidn2/2.3.3) libssh2/1.10.0 nghttp2/1.52.0 librtmp/2.3 OpenLDAP/2.5.13`
- OK gzip: `gzip 1.12`
- OK tar: `tar (GNU tar) 1.34`
- OK bash: `GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu)`
- OK sh: `Ok`

mason.nvim [Languages] ~
- WARNING Go: not available
  - ADVICE:
    - spawn: go failed with exit code - and signal -. go is not executable
- WARNING Composer: not available
  - ADVICE:
    - spawn: composer failed with exit code - and signal -. composer is not executable
- WARNING PHP: not available
  - ADVICE:
    - spawn: php failed with exit code - and signal -. php is not executable
- WARNING cargo: not available
  - ADVICE:
    - spawn: cargo failed with exit code - and signal -. cargo is not executable
- WARNING luarocks: not available
  - ADVICE:
    - spawn: luarocks failed with exit code - and signal -. luarocks is not executable
- WARNING javac: not available
  - ADVICE:
    - spawn: javac failed with exit code - and signal -. javac is not executable
- WARNING java: not available
  - ADVICE:
    - spawn: java failed with exit code - and signal -. java is not executable
- WARNING julia: not available
  - ADVICE:
    - spawn: julia failed with exit code - and signal -. julia is not executable
- OK python: `Python 3.11.2`
- OK node: `v18.19.0`
- OK Ruby: `ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux-gnu]`
- OK RubyGem: `3.3.15`
- OK pip: `pip 23.0.1 from /usr/lib/python3/dist-packages/pip (python 3.11)`
- OK python venv: `Ok`
- OK npm: `9.2.0`

mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 0. Remaining: 5000. Limit: 5000. Reset: Thu 11 Apr 2024 02:03:03 AM IST.

Screenshots

Mason without setting borders to rounded: mason-normal

Mason after setting borders to rounded: mason-rounded

shreyas-a-s commented 2 months ago

Hi, William. Hi, community.

I wanted to add a bit of info I found while doing a bit of testing. It's that the padding is off even when setting the value to single or double meaning the issue occurs when the value of border is set to anything other than none.

Just thought I should share. Thanks for reading through.