mirror of
https://github.com/Myzel394/easytables.nvim.git
synced 2025-06-18 14:55:26 +02:00
feat: Add min width for auto size
This commit is contained in:
parent
56ddbeda71
commit
f1ed142aec
@ -74,6 +74,9 @@ function M:_set_window_positions()
|
||||
local width = self:get_table_width()
|
||||
local _, height = get_window_size(self.table:cols_amount(), self.table:rows_amount())
|
||||
|
||||
width = math.max(20, width)
|
||||
height = math.max(10, height)
|
||||
|
||||
vim.api.nvim_win_set_config(self.preview_window, {
|
||||
width = width,
|
||||
height = height,
|
||||
|
Loading…
x
Reference in New Issue
Block a user