]> git.wincent.com - base16-nvim.git/log
base16-nvim.git
6 months agoperf: use `vim.api.nvim_set_hl()` for speed main
Greg Hurrell [Sat, 3 Sep 2022 20:42:22 +0000 (22:42 +0200)] 
perf: use `vim.api.nvim_set_hl()` for speed

As noted in this thread:

- https://www.reddit.com/r/neovim/comments/sihuq7/psa_now_you_can_set_global_highlight_groups_ie/

we can expect this to be faster. On this machine (mid-2015 15" MacBook
Pro), our `nvim --startuptime vim.log` goes from:

    145.776  000.750  000.146: sourcing /Users/wincent/.config/nvim/pack/bundle/opt/cmp-buffer/after/plugin/cmp_buffer.lua
    151.221  001.641  001.641: sourcing /Users/wincent/.config/nvim/pack/bundle/opt/base16-nvim/colors/base16-bright.lua
    151.785  000.361  000.361: require('indent_blankline.utils')

to:

    140.661  000.604  000.079: sourcing /Users/wincent/.config/nvim/pack/bundle/opt/cmp-buffer/after/plugin/cmp_buffer.lua
    144.820  001.082  001.082: sourcing /Users/wincent/.config/nvim/pack/bundle/opt/base16-nvim/colors/base16-bright.lua
    145.383  000.314  000.314: require('indent_blankline.utils')

Columns are:

    clock   self+sourced   self:  sourced script

So, incredibly scientific results are that we dropped from 1.641ms to
1.082ms with this change. In practice, however, I always find that the
gap between the previous file's clock and the file of interest's clock
tells the full story: if we use that metric, we went from 151.221ms -
145.776ms (ie. 5.445ms) to 144.280ms - 140.661ms (ie. 3.619ms). ie.
there is some unaccounted for time in the "self" metric that probably
corresponds to reading the file and parsing it. Either way, this is a
small win but a gratefully accepted one.

6 months agodocs: fix grammar
Greg Hurrell [Sat, 3 Sep 2022 12:13:34 +0000 (14:13 +0200)] 
docs: fix grammar

6 months agodocs: add notes on how to update
Greg Hurrell [Sat, 3 Sep 2022 12:10:29 +0000 (14:10 +0200)] 
docs: add notes on how to update

Because it is complicated enough, and infrequent enough, that I could
easily forget a path, or to do a step.

6 months agofeat: add support for special names (NONE, bg, etc)
Greg Hurrell [Sat, 3 Sep 2022 11:46:30 +0000 (13:46 +0200)] 
feat: add support for special names (NONE, bg, etc)

This backports:

- https://github.com/chriskempson/base16-vim/commit/c8a7da6f5fa890a621d4fec11ef09c9b3559f32a

From:

- https://github.com/chriskempson/base16-vim/pull/217

How I did this:

1. Made changes to the template in the submodule in my dotfiles repo (at
   `aspects/nvim/files/.config/nvim/pack/bundle/opt/base16-nvim`).
2. Copied them up to the superproject working area with:
   `cp aspects/nvim/files/.config/nvim/pack/bundle/opt/base16-nvim/templates/default.mustache
   vendor/base16-templates/base16-nvim/templates`.
3. Ran `NO_CLONE=1 support/base16-builder.rb`.

6 months agofeat: tweak Statement color
Greg Hurrell [Sat, 3 Sep 2022 11:38:16 +0000 (13:38 +0200)] 
feat: tweak Statement color

This backports:

- https://github.com/chriskempson/base16-vim/commit/06cc5591498c88200e58c97b67cf3913db0f5af1

From:

- https://github.com/chriskempson/base16-vim/pull/210

How I did this:

1. Made changes to the template in the submodule in my dotfiles repo (at
   `aspects/nvim/files/.config/nvim/pack/bundle/opt/base16-nvim`).
2. Copied them up to the superproject working area with:
   `cp aspects/nvim/files/.config/nvim/pack/bundle/opt/base16-nvim/templates/default.mustache
   vendor/base16-templates/base16-nvim/templates`.
3. Ran `NO_CLONE=1 support/base16-builder.rb`.

6 months agofeat: add LSP highlight groups
Greg Hurrell [Sat, 3 Sep 2022 11:33:27 +0000 (13:33 +0200)] 
feat: add LSP highlight groups

This backports:

- https://github.com/chriskempson/base16-vim/commit/db92479478ebccbb2c11874e4b730477653414a5

From:

- https://github.com/chriskempson/base16-vim/pull/222

How I did this:

1. Made changes to the template in the submodule in my dotfiles repo (at
   `aspects/nvim/files/.config/nvim/pack/bundle/opt/base16-nvim`).
2. Copied them up to the superproject working area with:
   `cp aspects/nvim/files/.config/nvim/pack/bundle/opt/base16-nvim/templates/default.mustache
   vendor/base16-templates/base16-nvim/templates`.
3. Ran `NO_CLONE=1 support/base16-builder.rb`.

6 months agochore: update with new schemes
Greg Hurrell [Sat, 3 Sep 2022 11:10:26 +0000 (13:10 +0200)] 
chore: update with new schemes

4 new schemes:

- base16-danqing-light
- base16-gruber
- base16-vice
- base16-vice-alt

And 1 scheme with very minor tweaks:

- base16-tender

Generated this by running `support/base16-builder.rb` from my dotfiles:

- https://github.com/wincent/wincent/blob/main/support/base16-builder.rb

Then committing the results.

6 months agochore: add .mailmap file
Greg Hurrell [Sat, 3 Sep 2022 08:55:04 +0000 (10:55 +0200)] 
chore: add .mailmap file

6 months agochore: replace bad links
Greg Hurrell [Sat, 3 Sep 2022 08:53:49 +0000 (10:53 +0200)] 
chore: replace bad links

These all point at some kind of crypto/casino site now (I can't bear to
even read it closely enough to know _what_ it is), so replace them with
a non-radioactive link instead.

20 months agofix: adjust template to match what was actually used to generate outputs
Greg Hurrell [Sun, 18 Jul 2021 10:40:24 +0000 (12:40 +0200)] 
fix: adjust template to match what was actually used to generate outputs

20 months agochore: initial import
Greg Hurrell [Sun, 18 Jul 2021 10:13:21 +0000 (12:13 +0200)] 
chore: initial import

Extracted from my dotfiles:

    https://github.com/wincent/wincent/tree/63ae5ac88edac5ab877737bd964af09983ea1bc6/vendor/base16-templates/base16-nvim

This is a port to Lua of base16-vim:

    https://github.com/chriskempson/base16-vim

As this is a heavily derivative work, I've preserved the original
copyright notice in the LICENSE.md.