colorscheme.lua (593B)
1 vim.opt.background = 'dark' 2 if vim.fn.has('termguicolors') == 1 then 3 vim.opt.cursorline = true -- Highlight cursor line, max column. 4 vim.opt.termguicolors = true -- Enable 24-bit colour. 5 6 vim.api.nvim_create_autocmd({ "WinEnter", "BufEnter" }, { 7 callback = function() 8 vim.opt_local.cursorline = true 9 end, 10 }) 11 vim.api.nvim_create_autocmd({ "WinLeave", "BufLeave" }, { 12 callback = function() 13 vim.opt_local.cursorline = false 14 end, 15 }) 16 17 -- Highlight over-length lines. 18 vim.opt_local.colorcolumn = "80" 19 vim.opt_local.textwidth = 80 20 end