From c4ace08e2413a5750141c0ef189a9b716746876e Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 3 Jan 2023 21:38:35 +0100 Subject: Add project telescope loading inside of telescope config --- fnl/config/project.fnl | 3 --- fnl/config/telescope.fnl | 1 + fnl/plugins.fnl | 7 ++----- 3 files changed, 3 insertions(+), 8 deletions(-) (limited to 'fnl') diff --git a/fnl/config/project.fnl b/fnl/config/project.fnl index a7bcb82..1617ca5 100644 --- a/fnl/config/project.fnl +++ b/fnl/config/project.fnl @@ -12,6 +12,3 @@ :datapath (vim.fn.stdpath :data)}) (util.setup :project_nvim opts) - -(let [telescope (require :telescope)] - (telescope.load_extension :projects)) diff --git a/fnl/config/telescope.fnl b/fnl/config/telescope.fnl index c04c4a5..a5fc4ab 100644 --- a/fnl/config/telescope.fnl +++ b/fnl/config/telescope.fnl @@ -82,6 +82,7 @@ (telescope.load_extension :fzf) (telescope.load_extension :frecency) (telescope.load_extension :orgmode) + (telescope.load_extension :projects) (telescope.load_extension :harpoon) (util.setup :session-lens lens-opts) (telescope.load_extension :session-lens))) diff --git a/fnl/plugins.fnl b/fnl/plugins.fnl index 516a8d7..a3e68af 100644 --- a/fnl/plugins.fnl +++ b/fnl/plugins.fnl @@ -83,12 +83,14 @@ :dependencies [:nvim-lua/popup.nvim :nvim-telescope/telescope-frecency.nvim :tami5/sqlite.lua + :ahmedkhalf/project.nvim :nvim-lua/plenary.nvim :rmagatti/session-lens :nvim-telescope/telescope-fzf-native.nvim :nvim-telescope/telescope-frecency.nvim :joaomsa/telescope-orgmode.nvim] :config (fn [] + (require :config.project) (require :config.telescope))} {1 :tamago324/lir.nvim :event :VeryLazy @@ -103,11 +105,6 @@ :event :VeryLazy :config (fn [] (require :config.flit))} - {1 :ahmedkhalf/project.nvim - :cmd :Telescope - :dependencies :nvim-telescope/telescope.nvim - :config (fn [] - (require :config.project))} {1 :windwp/nvim-spectre :event :VeryLazy :config (fn [] -- cgit v1.2.3-70-g09d2