summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-11 23:49:33 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-11 23:49:33 +0200
commit95944c1bde19418e9b8aa1c91622067945c7b1ea (patch)
tree9e1138ce594a117701163790da761e29abb82ff2 /fnl
parente816ef784ac00d367de6d9334b167bf9533e5d7a (diff)
style: format
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))