1
0
mirror of https://github.com/danbee/dotfiles-local synced 2025-03-04 08:49:07 +00:00

Use transparent background for nvim in terminal

This commit is contained in:
Dan Barber 2024-09-09 18:06:07 -05:00
parent 599c0801f5
commit 158cf84293

View File

@ -1,3 +1,8 @@
require("onedark").setup({
style = "darker",
transparent = not vim.g.neovide,
})
require("onedark").load()
local indent = 2
@ -18,8 +23,11 @@ vim.opt.number = true
-- Line width
local colorcolumns = {}
for i = 1, 40 do
table.insert(colorcolumns, string.format("+%i", i))
if vim.g.neovide then
for i = 1, 40 do
table.insert(colorcolumns, string.format("+%i", i))
end
end
vim.opt.textwidth = 80