/
packages.fnl
77 lines (69 loc) · 1.72 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
(import-macros
{: rv
: ||>
: forieach
: imap
: dbg!}
:init-macros)
(local lazy (require :lazy))
(local main-plugins
[;; Fennel loader
{1 :udayvir-singh/tangerine.nvim
:priority 1000
:lazy false}
;; Luarocks
{1 :vhyrro/luarocks.nvim
:priority 1000
:opts {:rocks [:luautf8]}}
;; Typed fennel
{1 :dokutan/typed-fennel
:lazy true}
;; 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)))))
(lazy.setup
[main-plugins
(preload :rv-config)]
opts)