summaryrefslogtreecommitdiff
path: root/fnl/plugins/init.fnl
blob: 9fea347e339b435dee627c6e4f379f22a0c57417 (plain)
1
2
3
4
5
6
7
8
9
10
(let [plugins (require :plugins.lsp)
      path (.. (vim.fn.stdpath :config) :/fnl/plugins)]
  (if (vim.loop.fs_stat path)
      (do
      (each [fname (vim.fs.dir path)]
        (let [fname (fname:match "^(.*)%.fnl$")]
          (if (and (not= fname nil) (not= fname :init) (not= fname :lazy))
              (table.insert plugins (require (.. :plugins. fname))))))
      ))
  plugins)