8000 GitHub - moreka/notation.nvim: neovim colorscheme inspired by blackboards and ballpoint pens
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

moreka/notation.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notation.nvim

neovim colorscheme inspired by physical media.

notation-ss

there are two variants: notation-blackboard (dark mode) and notation-ballpoint (light mode.)

they have exactly the same mappings, just different palettes.

features

  • the variant to use is determined by the value of background (dark or light)
  • thoughtful, sensible color choices: non-distracting, but informative
  • exactly enough information to keep in your brain at once

installation & setup

  • 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>')

About

neovim colorscheme inspired by blackboards and ballpoint pens

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%
0