summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-13 01:44:48 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-13 01:44:48 +0100
commit8c3692f3ab6e8bbe148a21f34ad5962951462766 (patch)
tree518b017626e0c8c073cf7f75e83222a3fcdf5514 /fnl
parent8d8cf86821d7cc1b093d149389baf5272e8033ca (diff)
Merge project into telescope
Diffstat (limited to 'fnl')
-rw-r--r--fnl/plugins/project.fnl16
-rw-r--r--fnl/plugins/telescope.fnl21
2 files changed, 20 insertions, 17 deletions
diff --git a/fnl/plugins/project.fnl b/fnl/plugins/project.fnl
deleted file mode 100644
index 4361e06..0000000
--- a/fnl/plugins/project.fnl
+++ /dev/null
@@ -1,16 +0,0 @@
-;; Provides project management.
-
-{1 :ahmedkhalf/project.nvim
- :cmd :Telescope
- :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)}
- :config (lambda [_ opts]
- (let [project (require :project_nvim)]
- (project.setup opts)))}
diff --git a/fnl/plugins/telescope.fnl b/fnl/plugins/telescope.fnl
index 7f782e1..df8c031 100644
--- a/fnl/plugins/telescope.fnl
+++ b/fnl/plugins/telescope.fnl
@@ -85,7 +85,26 @@
:nvim-telescope/telescope-frecency.nvim
{1 :nvim-telescope/telescope-fzf-native.nvim :build :make}
:tami5/sqlite.lua
- :ahmedkhalf/project.nvim
+ {1 :ahmedkhalf/project.nvim
+ :event :VeryLazy
+ :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)}
+ :config (lambda [_ opts]
+ (let [project (require :project_nvim)]
+ (project.setup opts)))}
:nvim-lua/plenary.nvim
:nvim-telescope/telescope-fzf-native.nvim
:nvim-telescope/telescope-frecency.nvim