summaryrefslogtreecommitdiff
path: root/fnl/config/project.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-08 14:24:05 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-08 14:24:05 +0100
commit68719ee058a302a4bda697b6a39ebfd5fefb06fc (patch)
tree055165e0b3edeeb2ea36da6e2eee9e851ca7cc0b /fnl/config/project.fnl
parent86fc163e549d78136855ac2b45e91ffb2f43affc (diff)
Refactor loading of plugins
Diffstat (limited to 'fnl/config/project.fnl')
-rw-r--r--fnl/config/project.fnl24
1 files changed, 13 insertions, 11 deletions
diff --git a/fnl/config/project.fnl b/fnl/config/project.fnl
index eceef84..57cfb9c 100644
--- a/fnl/config/project.fnl
+++ b/fnl/config/project.fnl
@@ -1,15 +1,17 @@
;; Provides project management.
(local 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)})
+ :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)})
- {1 :ahmedkhalf/project.nvim
- :event :BufReadPre
- :config opts}
+{1 :ahmedkhalf/project.nvim
+ :cmd :Telescope
+ :config (fn []
+ (let [project (require :project_nvim)]
+ (project.setup opts)))}