summaryrefslogtreecommitdiff
path: root/lua/no-clown-fiesta/init.lua
blob: 14a3f2a59d5be02ec91a0d13ac6ffa8fbcde92be (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
local M = {}

function M.setup(opts)
  local settings = require "no-clown-fiesta.settings"
  if opts then
    opts = settings.set(opts)
  end

  vim.api.nvim_command "hi clear"
  if vim.fn.exists "syntax_on" then
    vim.api.nvim_command "syntax reset"
  end

  vim.o.background = "dark"
  vim.o.termguicolors = true
  vim.g.colors_name = "no-clown-fiesta"

  local util = require "no-clown-fiesta.util"
  local palette = require "no-clown-fiesta.palette"
  local alpha = require("no-clown-fiesta.alpha").highlight(palette)
  local git = require("no-clown-fiesta.git").highlight(palette)
  local hop = require("no-clown-fiesta.hop").highlight(palette)
  local highlights = require("no-clown-fiesta.highlights").highlight(palette, opts)
  local lir = require("no-clown-fiesta.lir").highlight(palette)
  local lsp = require("no-clown-fiesta.lsp").highlight(palette)
  local markdown = require("no-clown-fiesta.markdown").highlight(palette)
  local neogit = require("no-clown-fiesta.neogit").highlight(palette)
  local nvimtree = require("no-clown-fiesta.nvim-tree").highlight(palette)
  local nvimcmp = require("no-clown-fiesta.nvim-cmp").highlight(palette)
  local statusline = require("no-clown-fiesta.statusline").highlight(palette)
  local telescope = require("no-clown-fiesta.telescope").highlight(palette)
  local treesitter = require("no-clown-fiesta.treesitter").highlight(palette, opts)
  local whichkey = require("no-clown-fiesta.whichkey").highlight(palette)

  local skeletons = {
    alpha,
    git,
    hop,
    highlights,
    lir,
    lsp,
    markdown,
    neogit,
    nvimtree,
    nvimcmp,
    statusline,
    telescope,
    treesitter,
    whichkey,
  }

  for _, skeleton in ipairs(skeletons) do
    util.initialise(skeleton)
  end
end

return M