commit 4b84bea032df5fe0e34b408cd6bc2a7dcf1cfbf4
parent a57665f8a547fd8645bae3737813a0038fe04e2a
Author: Andrew <andrewlaack1@gmail.com>
Date: Sun, 7 Apr 2024 00:43:18 -0500
Updated from telescope to fzf-lua for better file searching performance
Diffstat:
3 files changed, 16 insertions(+), 17 deletions(-)
diff --git a/lua/core/keymaps.lua b/lua/core/keymaps.lua
@@ -11,7 +11,7 @@ vim.opt.clipboard = 'unnamedplus'
vim.g.mapleader = ' '
-- Key mappings
-vim.api.nvim_set_keymap('n', '<C-p>', ':Telescope find_files<CR>', { silent = true })
+vim.api.nvim_set_keymap('n', '<C-p>', ':FzfLua files<CR>', { silent = true })
vim.api.nvim_set_keymap('n', '<leader>v', ':split<CR>', { silent = true })
vim.api.nvim_set_keymap('n', '<leader>h', ':vsplit<CR>', { silent = true })
diff --git a/lua/core/plugins.lua b/lua/core/plugins.lua
@@ -16,10 +16,6 @@ return require('packer').startup(function(use)
use({ "iamcco/markdown-preview.nvim", run = "cd app && npm install", setup = function() vim.g.mkdp_filetypes = { "markdown" } end, ft = { "markdown" }, })
-use {
- 'nvim-telescope/telescope.nvim', tag = '0.1.6',
- requires = { {'nvim-lua/plenary.nvim'} }
-}
use { "catppuccin/nvim", as = "catppuccin" }
use {
@@ -37,9 +33,12 @@ use {
"williamboman/mason-lspconfig.nvim",
}
+use { "ibhagwan/fzf-lua",
+ -- optional for icon support
+ requires = { "nvim-tree/nvim-web-devicons" }
+}
-
-
+use = { "junegunn/fzf", run = "./install --bin" }
diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua
@@ -89,6 +89,11 @@ _G.packer_plugins = {
path = "/home/andrew/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
url = "https://github.com/hrsh7th/cmp-nvim-lsp"
},
+ ["fzf-lua"] = {
+ loaded = true,
+ path = "/home/andrew/.local/share/nvim/site/pack/packer/start/fzf-lua",
+ url = "https://github.com/ibhagwan/fzf-lua"
+ },
["lsp-zero.nvim"] = {
loaded = true,
path = "/home/andrew/.local/share/nvim/site/pack/packer/start/lsp-zero.nvim",
@@ -121,20 +126,15 @@ _G.packer_plugins = {
path = "/home/andrew/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
url = "https://github.com/neovim/nvim-lspconfig"
},
+ ["nvim-web-devicons"] = {
+ loaded = true,
+ path = "/home/andrew/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
+ url = "https://github.com/nvim-tree/nvim-web-devicons"
+ },
["packer.nvim"] = {
loaded = true,
path = "/home/andrew/.local/share/nvim/site/pack/packer/start/packer.nvim",
url = "https://github.com/wbthomason/packer.nvim"
- },
- ["plenary.nvim"] = {
- loaded = true,
- path = "/home/andrew/.local/share/nvim/site/pack/packer/start/plenary.nvim",
- url = "https://github.com/nvim-lua/plenary.nvim"
- },
- ["telescope.nvim"] = {
- loaded = true,
- path = "/home/andrew/.local/share/nvim/site/pack/packer/start/telescope.nvim",
- url = "https://github.com/nvim-telescope/telescope.nvim"
}
}