config/nvim/lua/interface.lua

16 lines
441 B
Lua
Raw Normal View History

-- Interface settings
2022-07-06 17:50:17 +00:00
-- Set preferred colour scheme/background colour here; it will be substituted below
2022-05-28 17:21:16 +00:00
local colours = "sourcerer"
-- Show line numbers
vim.wo.number = true
-- Colour scheme settings
-- Use terminal-safe colours on the Linux terminal,
-- but true-colour otherwise
vim.o.termguicolors = (os.getenv("TERM") ~= "linux")
2022-07-06 17:50:17 +00:00
vim.o.background = background
vim.cmd("syntax on")
vim.cmd(string.gsub("colorscheme ", "$", colours))