From 68719ee058a302a4bda697b6a39ebfd5fefb06fc Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 8 Jan 2023 14:24:05 +0100 Subject: Refactor loading of plugins --- fnl/config/project.fnl | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'fnl/config/project.fnl') 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)))} -- cgit v1.2.3-70-g09d2