This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
plugin.fnl
72 lines (59 loc) · 2.12 KB
/
plugin.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
(module config.plugin
{autoload {nvim aniseed.nvim
a aniseed.core
util config.util
packer packer}})
(defn- safe-require-plugin-config [name]
(let [(ok? val-or-err) (pcall require (.. :config.plugin. name))]
(when (not ok?)
(print (.. "config error: " val-or-err)))))
(defn- use [...]
"Iterates through the arguments as pairs and calls packer's use function for
each of them. Works around Fennel not liking mixed associative and sequential
tables as well."
(let [pkgs [...]]
(packer.startup
(fn [use]
(for [i 1 (a.count pkgs) 2]
(let [name (. pkgs i)
opts (. pkgs (+ i 1))]
(-?> (. opts :mod) (safe-require-plugin-config))
(use (a.assoc opts 1 name)))))))
nil)
;;; plugins managed by packer
;;; :mod specifies namespace under plugin directory
(use
;; plugin Manager
:wbthomason/packer.nvim {}
;; nvim config and plugins in Fennel
:Olical/aniseed {:branch :develop}
;; theme
:folke/tokyonight.nvim {:mod :theme}
:nvim-tree/nvim-web-devicons {}
;; status line
:nvim-lualine/lualine.nvim {:mod :lualine}
;; file searching
:nvim-telescope/telescope.nvim {:requires [:nvim-telescope/telescope-ui-select.nvim
:nvim-lua/popup.nvim
:nvim-lua/plenary.nvim]
:mod :telescope}
;; repl tools
:Olical/conjure {:branch :master :mod :conjure}
;; sexp
:guns/vim-sexp {:mod :sexp}
:tpope/vim-sexp-mappings-for-regular-people {}
:tpope/vim-repeat {}
:tpope/vim-surround {}
;; parsing system
:nvim-treesitter/nvim-treesitter {:run ":TSUpdate"
:mod :treesitter}
;; lsp
:neovim/nvim-lspconfig {:mod :lspconfig}
; snippets
:L3MON4D3/LuaSnip {:requires [:saadparwaiz1/cmp_luasnip]}
;; autocomplete
:hrsh7th/nvim-cmp {:requires [:hrsh7th/cmp-buffer
:hrsh7th/cmp-nvim-lsp
:hrsh7th/cmp-vsnip
:PaterJason/cmp-conjure]
:mod :cmp})