From c6eed10073238ca5cddd98c5be9dc4a99a3104d4 Mon Sep 17 00:00:00 2001 From: Scott McKendry <39483124+scottmckendry@users.noreply.github.com> Date: Mon, 24 Jun 2024 07:33:29 +1200 Subject: [PATCH] add fzf-native telescope extension :bulb: --- Setup.ps1 | 3 +++ nvim/lua/plugins/telescope.lua | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/Setup.ps1 b/Setup.ps1 index c47a3de..078b37b 100644 --- a/Setup.ps1 +++ b/Setup.ps1 @@ -17,9 +17,11 @@ $symlinks = @{ $wingetDeps = @( "chocolatey.chocolatey" "eza-community.eza" + "ezwinports.make" "fastfetch-cli.fastfetch" "git.git" "github.cli" + "kitware.cmake" "mbuilov.sed" "microsoft.openjdk.21" "microsoft.powershell" @@ -34,6 +36,7 @@ $chocoDeps = @( "fzf" "gawk" "lazygit" + "mingw" "nerd-fonts-jetbrainsmono" "ripgrep" "wezterm" diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua index 0611739..3dccbda 100644 --- a/nvim/lua/plugins/telescope.lua +++ b/nvim/lua/plugins/telescope.lua @@ -5,10 +5,18 @@ return { "nvim-lua/plenary.nvim", "nvim-tree/nvim-web-devicons", { "scottmckendry/telescope-resession.nvim", dev = true }, + { + "nvim-telescope/telescope-fzf-native.nvim", + build = function() + local install_path = vim.fn.stdpath("data") .. "/lazy/telescope-fzf-native.nvim" + vim.cmd("silent !cd " .. install_path .. " && make") + end, + }, }, config = function() local telescope = require("telescope") local actions = require("telescope.actions") + require("telescope").load_extension("fzf") local select_one_or_multi = function(prompt_bufnr) local picker = require("telescope.actions.state").get_current_picker(prompt_bufnr)