This commit is contained in:
Antoine Vaure 2024-08-20 09:56:22 +02:00
parent b17f2703fb
commit ac044d172c
5 changed files with 31 additions and 28 deletions

View file

@ -36,7 +36,7 @@ g.mapleader = ","
-- opt.fillchars = { eob = "~" }
opt.scrolloff = 4
opt.spelllang = "fr"
opt.colorcolumn = {100}
opt.colorcolumn = { 100 }
opt.textwidth = 100
opt.timeoutlen = 1000
opt.breakindent = true
@ -53,7 +53,7 @@ require("lazy").setup(plugins)
vim.cmd.colorscheme "catppuccin"
-- if $XDG_STATE_HOME/darkmode exists, set dark background, light other wise
local path = ( vim.fn.getenv("XDG_STATE_HOME") or "~/.local/state" ) .. "/darkmode"
local path = (vim.fn.getenv("XDG_STATE_HOME") or "~/.local/state") .. "/darkmode"
if vim.fn.filereadable(path) == 1 then
opt.background = "dark"
else