Skip to content

snqn/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sine qua non for Neovim.

This theme is dark-only and roughly tries to follow Tonsky's syntax-highlighting article.

Usage

You can use this repo as you would with any other Neovim theme.

Nix flake

{
  inputs.snqn-nvim.url = "github:74k1/snqn-nvim";

  # ...
}

Then in Home Manager:

{
  programs.neovim = {
    enable = true;
    package = pkgs.neovim-unwrapped;
    plugins = [
      {
        plugin = inputs.snqn-nvim.packages.${pkgs.stdenv.hostPlatform.system}.default;
        type = "lua";
        config =
        # lua
        ''
          require("snqn").setup({
            transparent = true,
          })

          vim.cmd('colorscheme snqn')
        '';
      }

      # other plugins ...
    ];
  };
}

Configuration

require("snqn").setup({
  transparent = true,
  transparent_highlights = false,
  disable_semantic_tokens = true,
  palettes = {
    base0E = "#A37BFF",
    -- and so on
  },
  highlight_overrides = function(colors, opts)
    return {
      CursorLineNr = {
        fg = colors.comment,
        bg = opts.transparent and "NONE" or colors.gutter,
      },
    }
  end,
})

Options

  • transparent: make editor backgrounds transparent
  • transparent_highlights: also remove fills from highlight-style surfaces like selection/search/diff/diagnostic chips
  • disable_semantic_tokens: disable LSP semantic token coloring on attach so Treesitter/theme colors stay in control
  • palettes: override any base00-base0F color
  • highlight_overrides: override/add custom highlight groups

Thanks to

Contributors

Inspirations


Copyright © 2026-present SNQN

About

nvim theme for the snqn colorscheme.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors