summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl')
-rw-r--r--fnl/init.fnl4
-rw-r--r--fnl/install.fnl6
2 files changed, 5 insertions, 5 deletions
diff --git a/fnl/init.fnl b/fnl/init.fnl
index f88b870..567214f 100644
--- a/fnl/init.fnl
+++ b/fnl/init.fnl
@@ -2,5 +2,5 @@
(module init)
(require :settings)
(require :install)
-(if (> (# (vim.fn.readdir path)) 3)
- (require :config))
+(if (> (length (vim.fn.readdir path)) 3)
+ (require :config))
diff --git a/fnl/install.fnl b/fnl/install.fnl
index e518043..f6b4501 100644
--- a/fnl/install.fnl
+++ b/fnl/install.fnl
@@ -10,6 +10,6 @@
(use (a.assoc opts 1 plugin))))))
(install-plugins plugins.plugins)
-(local path (.. (vim.fn.stdpath "data") "/site/pack/packer/start"))
-(if (= (# (vim.fn.readdir path)) 3)
- (packer.sync))
+(local path (.. (vim.fn.stdpath :data) :/site/pack/packer/start))
+(if (= (length (vim.fn.readdir path)) 3)
+ (packer.sync))