From f17a8a5a63f530fd11fa002b0d2147d7c7de9abf Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Fri, 22 Nov 2024 23:10:08 +0500 Subject: [PATCH] nvim: Add support for neovide --- dot-config/nvim/lua/chadrc.lua | 3 +++ dot-config/nvim/lua/options.lua | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dot-config/nvim/lua/chadrc.lua b/dot-config/nvim/lua/chadrc.lua index 6bb2cf7..19568a0 100644 --- a/dot-config/nvim/lua/chadrc.lua +++ b/dot-config/nvim/lua/chadrc.lua @@ -13,4 +13,7 @@ M = { -- ["@comment"] = { italic = true }, -- }, } +if vim.g.neovide then + M.base46.transparency = false +end return M diff --git a/dot-config/nvim/lua/options.lua b/dot-config/nvim/lua/options.lua index 6e008c0..67b6c29 100644 --- a/dot-config/nvim/lua/options.lua +++ b/dot-config/nvim/lua/options.lua @@ -1,11 +1,17 @@ require "nvchad.options" local o = vim.o +local g = vim.g o.tabstop = 4 -- A TAB character looks like 4 spaces o.expandtab = true -- Pressing the TAB key will insert spaces instead of a TAB character o.softtabstop = 4 -- Number of spaces inserted instead of a TAB character o.shiftwidth = 4 -- Number of spaces inserted when indenting -o.cursorlineopt ='both' -- to enable cursorline! +o.cursorlineopt ='both' -- to enable cursor line! + +if g.neovide then + o.guifont = "JetBrainsMono Nerd Font Mono:h14" + g.neovide_cursor_trail_size = 0.3 +end vim.filetype.add({ extension = {