From 0a9fa4fc0389f5d25bdad7ed4650e288212426b5 Mon Sep 17 00:00:00 2001 From: Jacob Hinkle Date: Mon, 14 Nov 2022 12:52:33 -0500 Subject: [PATCH] Add telescope to neovim --- home/neovim.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/home/neovim.nix b/home/neovim.nix index 728e43a..70b0751 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -18,6 +18,15 @@ pkgs: { let mapleader = ',' map n :lnext map p :lprev + + " Find files using Telescope command-line sugar. + nnoremap e Telescope find_files + nnoremap g Telescope live_grep + nnoremap b Telescope buffers + nnoremap h Telescope help_tags + " temporary fix for broken popup menu colors + " see here: https://github.com/nvim-telescope/telescope.nvim/issues/2145 + hi NormalFloat ctermfg=LightGrey ''; plugins = with pkgs.vimPlugins; [ #context-vim @@ -25,8 +34,8 @@ pkgs: { #fzf #gundo python-mode - #telescope-nvim - #telescope-fzf-native-nvim + telescope-nvim + telescope-fzf-native-nvim #nvim-treesitter vim-nix ];