From 40be012cebe06b86a9af7ed25e4a809bfdd75330 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Sun, 21 Jan 2024 00:14:00 +0100 Subject: [PATCH] nvim: use telescope-zf-native --- home/config/nvim/plugins/telescope.fnl | 12 +++++++----- home/programs/nvim/default.nix | 2 +- home/programs/nvim/plugins.nix | 14 -------------- home/programs/nvim/plugins.yaml | 3 --- 4 files changed, 8 insertions(+), 23 deletions(-) diff --git a/home/config/nvim/plugins/telescope.fnl b/home/config/nvim/plugins/telescope.fnl index 250bd30..d4715e9 100644 --- a/home/config/nvim/plugins/telescope.fnl +++ b/home/config/nvim/plugins/telescope.fnl @@ -25,11 +25,13 @@ :--smart-case :--trim]} :extensions {:ui-select [(themes.get_dropdown {})] - :fzf {:fuzzy true - :override_generic_sorter true - :override_file_sorter true - :case_mode :smart_case}}}) - (telescope.load_extension :fzf) + :zf-native {:file {:enable true + :highlight_results true + :match_filename true} + :generic {:enable true + :highlight_results true + :match_filename false}}}}) + (telescope.load_extension :zf-native) (telescope.load_extension :ui-select) (telescope.load_extension :yank_history) (telescope.load_extension :undo) diff --git a/home/programs/nvim/default.nix b/home/programs/nvim/default.nix index 4cd6046..f6c3e02 100644 --- a/home/programs/nvim/default.nix +++ b/home/programs/nvim/default.nix @@ -177,7 +177,7 @@ in type = "fennel"; } - telescope-fzf-native-nvim + pkgs.vimPlugins.telescope-zf-native-nvim { plugin = project-nvim; diff --git a/home/programs/nvim/plugins.nix b/home/programs/nvim/plugins.nix index aee459b..8af4bf2 100644 --- a/home/programs/nvim/plugins.nix +++ b/home/programs/nvim/plugins.nix @@ -181,20 +181,6 @@ in fetchSubmodules = false; }; }; - telescope-fzf-native-nvim = buildVimPlugin { - pname = "telescope-fzf-native.nvim"; - version = "2023-09-10"; - src = fetchFromGitHub { - owner = "nvim-telescope"; - repo = "telescope-fzf-native.nvim"; - rev = "6c921ca12321edaa773e324ef64ea301a1d0da62"; - sha256 = "101dxn7jfyg2wdzkw5cnrw475mg0p3w475l1hplqfhghz33zb1hy"; - fetchSubmodules = false; - }; - buildPhase = '' - make - ''; - }; project-nvim = buildVimPlugin { pname = "project.nvim"; version = "2023-04-04"; diff --git a/home/programs/nvim/plugins.yaml b/home/programs/nvim/plugins.yaml index 0ceb5f0..f6ba82f 100644 --- a/home/programs/nvim/plugins.yaml +++ b/home/programs/nvim/plugins.yaml @@ -19,9 +19,6 @@ - src: nvim-treesitter/playground # Telescope - src: nvim-telescope/telescope.nvim -- src: nvim-telescope/telescope-fzf-native.nvim - buildPhase: |- - make - src: ahmedkhalf/project.nvim - src: nvim-telescope/telescope-ui-select.nvim - src: debugloop/telescope-undo.nvim