From 9d3fffeed0cc375169b7b94bc26fcf8b4417b094 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 6 Aug 2023 22:46:58 +0530 Subject: [PATCH] enable telescope --- home/programs/neovim.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/home/programs/neovim.nix b/home/programs/neovim.nix index 2cb09ad..83b9086 100644 --- a/home/programs/neovim.nix +++ b/home/programs/neovim.nix @@ -13,6 +13,10 @@ extraPlugins = with pkgs.vimPlugins; [ dracula-vim ]; + extraPackages = with pkgs; [ + fd + ripgrep + ]; options = { autowrite = true; background = "dark"; @@ -55,6 +59,14 @@ silent = true; action = ":Neotree toggle"; }; + "ff" = { + silent = true; + action = ":Telescope find_files"; + }; + "fg" = { + silent = true; + action = ":Telescope live_grep"; + }; }; }; plugins = { @@ -128,6 +140,16 @@ {name = "treesitter";} ]; }; + telescope = { + enable = true; + extensions = { + fzf-native = { + enable = true; + caseMode = "smart_case"; + fuzzy = true; + }; + }; + }; treesitter = { enable = true; };