neovim colorscheme inspired by physical media.
there are two variants: notation-blackboard
(dark mode) and notation-ballpoint
(light mode.)
they have exactly the same mappings, just different palettes.
- the variant to use is determined by the value of
background
(dark
orlight
) - thoughtful, sensible color choices: non-distracting, but informative
- exactly enough information to keep in your brain at once
- via any plugin manager e.g.
lazy.nvim
,Plug
- put this in your
init.lua
:
require('notation')
vim.o.background = "dark" -- or "light"
vim.cmd("colorscheme notation")
if you like to switch dark/light mode a lot like me, you might want to do something similar to what i have:
function theme_from_gtk()
local handle = io.popen("gsettings get org.gnome.desktop.interface color-scheme")
local result = handle:read("*a")
handle:close()
if result:find("dark") then
vim.o.background = "dark"
else
vim.o.background = "light"
end
vim.cmd("colorscheme notation")
end
then call theme_from_gtk
in autocmds or keymaps, for example:
-- Initial check
theme_from_gtk()
-- Check when focus gained or lost, and on write
vim.api.nvim_create_autocmd({ "FocusGained", "FocusLost", "BufWrite" }, {
callback = theme_from_gtk
})
-- Bind to L
vim.keymap.set('n', 'L', '<Cmd>lua theme_from_gtk()<CR>')