Launch frameless
Closed this issue · 6 comments
How can I make nvui always launch frameless? I was thinking run :NvimFrameless v:false
in my init.lua (btw its a bit confusing that frameless false
will hide the titlebar (making it frameless), maybe it shouldbe NvuiTitlebar v:false
or NvuiFrameless v:true
to hide the titlebar).
But I think a better solution would be a command line argument
Yeah, nvui doesn't offer the ability to have absolutely no frame right now. You can hide the title bar if you go into fullscreen mode (:NvuiFullscreen v:true
).
What :NvuiFrameless
does is switch between the custom title bar and the native title bar. The custom title bar is achieved by setting a frameless window (absolutely no frame), and then showing a custom title bar widget, as well as handling moving and resizing within the program as opposed to letting the windowing system deal with it.
If you want a completely frameless window, it's possible but there wouldn't be any window controls so once the window shows up there would be nothing you could do with it. (Unless you call :NvuiFrameless,).
What
:NvuiFrameless
does is switch between the custom title bar and the native title bar. The custom title bar is achieved by setting a frameless window (absolutely no frame), and then showing a custom title bar widget, as well as handling moving and resizing within the program as opposed to letting the windowing system deal with it.
It's very confusing to call the command "NvuiFrameless" only because you set the frameless window hint in the code. It is "frameless" for Qt/window manager, but not for users. I suggest changing the name of the command.
BTW, the reply doesn't answer the issue. It only explains why "NvuiFrameless" is not frameless, which answers the "btw". But it doesn't offer a method to launch NVUI with :NvimFrameless v:false
.
And I think it's not a good idea to use the custom title bar by default.
Yeah, I had a discussion a little earlier to use the native title bar and it's been planned, but I have been away/busy for the past few days.
I agree that the naming of the NvuiFrameless
command isn't that accurate. I think it might be better to call it something like NvuiCustomTitlebar
.
Anyway, the custom title bar is now disabled by default, and you can turn it on via the command line argument --titlebar
, so I'm going to close this now.