mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 01:08:43 +02:00
plugins/toggleterm: allow lua functions in float_opts keys which support them
This commit is contained in:
parent
80c03843e7
commit
db93efffdb
2 changed files with 23 additions and 5 deletions
|
@ -60,7 +60,11 @@
|
|||
auto_scroll = false;
|
||||
float_opts = {
|
||||
border = "double";
|
||||
width = 30;
|
||||
width = ''
|
||||
function()
|
||||
return math.ceil(vim.o.columns * 0.8)
|
||||
end
|
||||
'';
|
||||
height = 30;
|
||||
winblend = 5;
|
||||
zindex = 20;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue