DEVELOPMENT ENVIRONMENT

~liljamo/nvim-flake

ref: 377b0f4065291251cbd189fa0bd586d939af75c8 nvim-flake/config/colourscheme.nix -rw-r--r-- 1.1 KiB
377b0f40Jonni Liljamo feat(telescope): theming changes a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{pkgs, ...}: {
  extraPlugins = [
    (pkgs.vimUtils.buildVimPlugin {
      name = "everforest";
      src = pkgs.fetchFromGitHub {
        owner = "neanias";
        repo = "everforest-nvim";
        rev = "2eb7c34";
        hash = "sha256-LMIGPDhKZVqriGuPR9ICVo55QdyByLXOoRK82KfsRxU=";
      };
    })
  ];

  # https://github.com/neanias/everforest-nvim?tab=readme-ov-file#overriding-highlight-groups
  # https://github.com/neanias/everforest-nvim/blob/main/lua/everforest/highlights.lua
  extraConfigLua = ''
    local everforest = require('everforest')

    everforest.setup({
      background = 'hard',
      italics = true,
      on_highlights = function(hl, palette)
        hl.Comment = { fg = palette.aqua }
        hl.SpecialComment = { fg = palette.aqua }
      end,
    })
    vim.o.background = "light"

    local colours = require("everforest.colours")
    local palette = colours.generate_palette(everforest.config, vim.o.background)

    -- set telescope colours
    vim.api.nvim_set_hl(0, "TelescopeResultsBorder", { bg = palette.bg_green })
    vim.api.nvim_set_hl(0, "TelescopePreviewBorder", { bg = palette.bg_red })
  '';
  colorscheme = "everforest";
}