From 0fc3c8f504d5387d37d827d4f5a76207cabb1c3e Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Wed, 18 Dec 2024 06:28:50 -0700 Subject: [PATCH] Replace telescope with fzf-lua --- .config/nvim/lua/plugins/fzf-lua.lua | 6 ++++++ .config/nvim/lua/plugins/telescope.lua | 8 -------- install.sh | 9 +++++++++ install.txt | 2 +- remove.txt | 1 + 5 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 .config/nvim/lua/plugins/fzf-lua.lua delete mode 100644 .config/nvim/lua/plugins/telescope.lua create mode 100644 remove.txt diff --git a/.config/nvim/lua/plugins/fzf-lua.lua b/.config/nvim/lua/plugins/fzf-lua.lua new file mode 100644 index 0000000..409b337 --- /dev/null +++ b/.config/nvim/lua/plugins/fzf-lua.lua @@ -0,0 +1,6 @@ +return { + "ibhagwan/fzf-lua", + keys = { + { "", LazyVim.pick("files"), desc = "Find Files (Root Dir)", remap = true }, + }, +} diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua deleted file mode 100644 index 096693f..0000000 --- a/.config/nvim/lua/plugins/telescope.lua +++ /dev/null @@ -1,8 +0,0 @@ -local Telescope = require("telescope.builtin") - -return { - "nvim-telescope/telescope.nvim", - keys = { - { "", Telescope.find_files, desc = "Find Files (root dir)" }, - }, -} diff --git a/install.sh b/install.sh index 7c299a5..3a427a6 100755 --- a/install.sh +++ b/install.sh @@ -108,6 +108,14 @@ function install_files() { done } +function remove_files() { + for file in $(cat remove.txt); do + echo "Removing $file" + + rm -f "$HOME/$file" + done +} + is_sudo detect_os detect_package_manager @@ -115,3 +123,4 @@ install_git install_oh_my_zsh install_mise install_files +remove_files diff --git a/install.txt b/install.txt index 899945c..c9cec8a 100644 --- a/install.txt +++ b/install.txt @@ -6,9 +6,9 @@ .config/nvim/lua/config/lazy.lua .config/nvim/lua/config/options.lua .config/nvim/lua/plugins/apex.lua +.config/nvim/lua/plugins/fzf-lua.lua .config/nvim/lua/plugins/gruvbox.lua .config/nvim/lua/plugins/neo-tree.lua -.config/nvim/lua/plugins/telescope.lua .config/nvim/stylua.toml .emacs.d/init.el .emacs.d/themes/solarized/LICENSE diff --git a/remove.txt b/remove.txt new file mode 100644 index 0000000..37d0be0 --- /dev/null +++ b/remove.txt @@ -0,0 +1 @@ +.config/nvim/lua/plugins/telescope.lua