summaryrefslogtreecommitdiff
path: root/fnl/config/project.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-07-19 23:38:55 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-07-19 23:38:55 +0200
commite12bf77a9fd8ebe81347532528c084d3a07c366a (patch)
tree9ef0b0c30ef01c7168edd6cb18323a8d3c273430 /fnl/config/project.fnl
parent3d53862b8c3f1ab19f4ac870079cc62fb886313d (diff)
Add util fun for loading most plugin opts
Diffstat (limited to 'fnl/config/project.fnl')
-rw-r--r--fnl/config/project.fnl27
1 files changed, 11 insertions, 16 deletions
diff --git a/fnl/config/project.fnl b/fnl/config/project.fnl
index 27f689c..6ef7942 100644
--- a/fnl/config/project.fnl
+++ b/fnl/config/project.fnl
@@ -1,19 +1,14 @@
;; Provides project management.
(module config.project {autoload {: util}})
-(let [project (util.load-plugin :project_nvim)]
- (project.setup {:active true
- :on_config_done nil
- :manual_mode false
- :detection_methods [:patterns]
- :patterns [:git
- :_darcs
- :.hg
- :.bzr
- :.svn
- :Makefile
- :package.json]
- :show_hidden false
- :silent_chdir true
- :ignore_lsp {}
- :datapath (vim.fn.stdpath :data)}))
+(def- opts {:active true
+ :on_config_done nil
+ :manual_mode false
+ :detection_methods [:patterns]
+ :patterns [:git :_darcs :.hg :.bzr :.svn :Makefile :package.json]
+ :show_hidden false
+ :silent_chdir true
+ :ignore_lsp {}
+ :datapath (vim.fn.stdpath :data)})
+
+(util.use-config :project_nvim opts)