diff options
| -rw-r--r-- | README.md | 12 | ||||
| -rw-r--r-- | doc/mason.txt | 12 |
2 files changed, 17 insertions, 7 deletions
@@ -140,8 +140,6 @@ Example: ```lua require("mason").setup({ ui = { - height = 0.8, - width = 60, icons = { package_installed = "✓", package_pending = "➜", @@ -209,11 +207,15 @@ local DEFAULT_SETTINGS = { -- The border to use for the UI window. Accepts same border values as |nvim_open_win()|. border = "none", - -- Width of the window, accepts integer (fixed width) or float (percentage of screen width). + -- Width of the window. Accepts: + -- - Integer greater than 1 for fixed width. + -- - Float in the range of 0-1 for a percentage of screen width. width = 0.8, - -- Height of the window, accepts integer (fixed height) or float (percentage of screen height). - height = 0.8, + -- Height of the window. Accepts: + -- - Integer greater than 1 for fixed height. + -- - Float in the range of 0-1 for a percentage of screen height. + height = 0.9, icons = { -- The list icon to use for installed packages. diff --git a/doc/mason.txt b/doc/mason.txt index 5db2a0ac..5c6452e6 100644 --- a/doc/mason.txt +++ b/doc/mason.txt @@ -218,8 +218,6 @@ Example: >lua require("mason").setup({ ui = { - height = 0.8, -- 0.8 * (vim.o.lines - vim.o.cmdheight) - width = 60, -- 60 columns icons = { package_installed = "✓", package_pending = "➜", @@ -285,6 +283,16 @@ Example: -- The border to use for the UI window. Accepts same border values as |nvim_open_win()|. border = "none", + -- Width of the window. Accepts: + -- - Integer greater than 1 for fixed width. + -- - Float in the range of 0-1 for a percentage of screen width. + width = 0.8, + + -- Height of the window. Accepts: + -- - Integer greater than 1 for fixed height. + -- - Float in the range of 0-1 for a percentage of screen height. + height = 0.9, + icons = { -- The list icon to use for installed packages. package_installed = "◍", |
