nvim: Add support for neovide

This commit is contained in:
timoxa0 2024-11-22 23:10:08 +05:00
parent 6f271c5425
commit f17a8a5a63
2 changed files with 10 additions and 1 deletions

View file

@ -13,4 +13,7 @@ M = {
-- ["@comment"] = { italic = true },
-- },
}
if vim.g.neovide then
M.base46.transparency = false
end
return M

View file

@ -1,12 +1,18 @@
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 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 = {
lnibuild = "bash"