set neovide options in zig

This commit is contained in:
LordMZTE 2023-05-24 20:32:43 +02:00
parent 2056b46bf2
commit abd14e0b34
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
3 changed files with 4 additions and 3 deletions

View file

@ -4,5 +4,4 @@
(require :plugins)
(require :maps)
(require :lsp)
(require :neovide)
(require :pipe)

View file

@ -1,2 +0,0 @@
(set vim.g.neovide_transparency 0.9)
(set vim.g.neovide_cursor_vfx_mode :wireframe)

View file

@ -59,6 +59,10 @@ pub fn initOptions() !void {
const opt = try std.fmt.bufPrintZ(&buf, "g:loaded_{s}_provider", .{garbage});
setVar(opt, .{ .bool = false });
}
// Neovide
setVar("g:neovide_transparency", .{ .float = 0.9 });
setVar("g:neovide_cursor_vfx_mode", .{ .string = @constCast("wireframe") });
}
fn setOption(key: [*:0]const u8, value: anytype) !void {