-
Notifications
You must be signed in to change notification settings - Fork 3
/
packages.fnl
115 lines (101 loc) · 2.62 KB
/
packages.fnl
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
(import-macros
{: rv
: ||>
: forieach
: imap
: dbg!}
:init-macros)
;; (local lazy (require :lazy))
(local main-plugins
[;; Nix helper
{1 :BirdeeHub/nixCats-nvim
:priority 1000
:lazy false}
;; Fennel loader
{1 :udayvir-singh/tangerine.nvim
:priority 1000
:lazy false}
;; Luarocks
{1 :vhyrro/luarocks.nvim
:priority 1000
:opts {:rocks [:luautf8]}}
;; Typed fennel
{1 :reo101/typed-fennel
;; 1 :dokutan/typed-fennel
:branch :subdirectories}
;; Async IO
{1 :nvim-neotest/nvim-nio
:tag :v1.8.0
:lazy true}])
(local opts
{:concurrency 30
;; :install
;; {:colorscheme :tokyonight}
;; :defaults {:lazy true}
:debug false
:profiling
{:loader false
:require false}
:performance
{:reset_packpath false
:cache {:enabled false}
:rtp
{:disabled_plugins
["2html_plugin"
"getscript"
"getscriptPlugin"
"gzip"
"logipat"
"netrw"
"netrwPlugin"
"netrwSettings"
"netrwFileHandlers"
"matchit"
"matchparen"
"spec"
"tar"
"tarPlugin"
"rrhelper"
"spellfile_plugin"
"vimball"
"vimballPlugin"
"zip"
"zipPlugin"]}}})
(fn preload [path]
(icollect [mod (-> (vim.fn.stdpath :config)
(vim.fs.joinpath :fnl path)
vim.fs.dir)]
(let [mod (or (mod:match "^(.*)%.fnl$")
mod)]
(require (.. path :. mod)))))
(local cats (require :cats))
(cats.setup {:non-nix-value true})
(var plugin-list nil)
(var nix-lazy-path nil)
(when cats.is-nix-cats
(local nix-cats (require :nixCats))
(local all-plugins nix-cats.pawsible.allPlugins)
(set plugin-list
(cats.mergePluginTables
all-plugins.start
all-plugins.opt))
;; (tset plugin-list :Comment.nvim "")
;; (tset plugin-list :LuaSnip "")
(set nix-lazy-path (. all-plugins.start :lazy.nvim)))
(local lazy-options {:lockfile (.. (vim.fn.stdpath :config) :/lazy-lock.json)})
;; (vim.print
;; {: plugin-list
;; : nix-lazy-path
;; :plugins [main-plugins
;; (preload :rv-config)]
;; : opts})
(cats.lazy-setup
plugin-list
nix-lazy-path
[main-plugins
(preload :rv-config)]
opts)
;; (lazy.setup
;; [main-plugins
;; (preload :rv-config)]
;; opts)