From 68a1009db711296ed12dcc69d75f10c6196e8dff Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 20 Feb 2023 17:46:02 +0000 Subject: [PATCH] Add some more telescope plugins, lazy load --- config/nvim/lua/config/keymaps.lua | 2 +- config/nvim/lua/plugins/command_center.lua | 5 +++++ config/nvim/lua/plugins/dashboard.lua | 2 +- config/nvim/lua/plugins/telescope.lua | 10 +++------- config/nvim/lua/plugins/telescope_fzf_native.lua | 7 +++++++ config/nvim/lua/plugins/telescope_http.lua | 5 +++++ 6 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 config/nvim/lua/plugins/command_center.lua create mode 100644 config/nvim/lua/plugins/telescope_fzf_native.lua create mode 100644 config/nvim/lua/plugins/telescope_http.lua diff --git a/config/nvim/lua/config/keymaps.lua b/config/nvim/lua/config/keymaps.lua index 2c179266..fdf2174b 100644 --- a/config/nvim/lua/config/keymaps.lua +++ b/config/nvim/lua/config/keymaps.lua @@ -7,7 +7,7 @@ vim.keymap.set({ "n", "t" }, "", "NavigatorDown") vim.keymap.set({ "n", "t" }, "", "NavigatorPrevious") -- Telescope -vim.keymap.set("n", "f;", "Telescope builtin") +vim.keymap.set("n", ";", "Telescope builtin") vim.keymap.set("n", "ff", "Telescope find_files") vim.keymap.set("n", "fb", "Telescope buffers") vim.keymap.set("n", "fg", "Telescope live_grep") diff --git a/config/nvim/lua/plugins/command_center.lua b/config/nvim/lua/plugins/command_center.lua new file mode 100644 index 00000000..f211e7e0 --- /dev/null +++ b/config/nvim/lua/plugins/command_center.lua @@ -0,0 +1,5 @@ +return { + "FeiyouG/command_center.nvim", + dependencies = { "nvim-telescope/telescope.nvim" }, + lazy = true, +} diff --git a/config/nvim/lua/plugins/dashboard.lua b/config/nvim/lua/plugins/dashboard.lua index ea2b53d9..b80d7a6a 100644 --- a/config/nvim/lua/plugins/dashboard.lua +++ b/config/nvim/lua/plugins/dashboard.lua @@ -1,6 +1,6 @@ return { "glepnir/dashboard-nvim", event = "VimEnter", - dependencies = { { "nvim-tree/nvim-web-devicons" } }, + dependencies = { "nvim-tree/nvim-web-devicons" }, config = function() require("dashboard").setup(require "config.dashboard") end, } diff --git a/config/nvim/lua/plugins/telescope.lua b/config/nvim/lua/plugins/telescope.lua index 6a1eea9f..517762ad 100644 --- a/config/nvim/lua/plugins/telescope.lua +++ b/config/nvim/lua/plugins/telescope.lua @@ -3,17 +3,13 @@ return { branch = "0.1.x", dependencies = { { "nvim-lua/plenary.nvim" }, - { - "nvim-telescope/telescope-fzf-native.nvim", - build = "make", - }, - { "rcarriga/nvim-notify" }, }, cmd = "Telescope", config = function() - require "telescope.actions" require("telescope").setup(require "config.telescope") - require("telescope").load_extension "fzf" require("telescope").load_extension "notify" + require("telescope").load_extension "fzf" + require("telescope").load_extension "command_center" + require("telescope").load_extension "http" end, } diff --git a/config/nvim/lua/plugins/telescope_fzf_native.lua b/config/nvim/lua/plugins/telescope_fzf_native.lua new file mode 100644 index 00000000..298b9407 --- /dev/null +++ b/config/nvim/lua/plugins/telescope_fzf_native.lua @@ -0,0 +1,7 @@ +return { + "nvim-telescope/telescope-fzf-native.nvim", + build = "make", + dependencies = { "nvim-telescope/telescope.nvim" }, + lazy = true, + config = function() require("telescope").load_extension "fzf" end, +} diff --git a/config/nvim/lua/plugins/telescope_http.lua b/config/nvim/lua/plugins/telescope_http.lua new file mode 100644 index 00000000..040e045a --- /dev/null +++ b/config/nvim/lua/plugins/telescope_http.lua @@ -0,0 +1,5 @@ +return { + "barrett-ruth/telescope-http.nvim", + dependencies = { "savq/paq-nvim", "nvim-telescope/telescope.nvim" }, + lazy = true, +}