From 5ac6f8294ae5d12ff52a1dc3d750fc0a96ef9911 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sat, 16 Apr 2022 11:45:52 -0400 Subject: [PATCH] nvim: move telescope setup to lua --- home/neovim.lua | 5 +++++ home/neovim.nix | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/home/neovim.lua b/home/neovim.lua index 69545af..926ded7 100644 --- a/home/neovim.lua +++ b/home/neovim.lua @@ -35,4 +35,9 @@ nmap("b]", ":BufferLineCyclePrev") nmap("be", ":BufferLineSortByExtension") nmap("bd", ":BufferLineSortByDirectory") +-- telescope setup +nmap("ff", ":Telescope find_files") +nmap("fg", ":Telescope live_grep") +nmap("fb", ":Telescope buffers") +nmap("fh", ":Telescope help_tags") diff --git a/home/neovim.nix b/home/neovim.nix index f7354fd..410ae63 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -74,13 +74,6 @@ nnoremap :WhichKey '' nnoremap :WhichKey ',' - " telescope - nnoremap ff Telescope find_files - nnoremap fg Telescope live_grep - nnoremap fb Telescope buffers - nnoremap fh Telescope help_tags - - lua << EOF ${builtins.readFile ./neovim.lua} EOF