feat(neovim): replace fzf-vim with telescope.nvim

This commit is contained in:
Felix Schröter 2022-03-30 02:33:58 +02:00
parent 3133316f6e
commit 2caf062e8f
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 5 additions and 6 deletions

View file

@ -5,10 +5,7 @@
home.packages = with pkgs; [ fzf ripgrep ]; home.packages = with pkgs; [ fzf ripgrep ];
home.sessionVariables = with pkgs; { home.sessionVariables.EDITOR = "nvim";
EDITOR = "nvim";
FZF_DEFAULT_COMMAND = "${ripgrep}/bin/rg --files --hidden";
};
home.file.".editorconfig".text = '' home.file.".editorconfig".text = ''
[*] [*]

View file

@ -17,7 +17,7 @@ in {
nvcode-color-schemes-vim nvcode-color-schemes-vim
editorconfig-nvim editorconfig-nvim
direnv-vim direnv-vim
fzf-vim telescope-nvim
lualine-nvim lualine-nvim
nvim-tree-lua nvim-tree-lua
toggleterm-nvim toggleterm-nvim

View file

@ -33,7 +33,9 @@ vim.g.closetag_regions = {
local map = vim.api.nvim_set_keymap local map = vim.api.nvim_set_keymap
map("", ";", ":Files<CR>", {}) map("n", ";", ":lua require('telescope.builtin').find_files()<CR>", { noremap = true })
map("n", ",", ":lua require('telescope.builtin').live_grep()<CR>", { noremap = true })
require("nvim-tree").setup {} require("nvim-tree").setup {}
map("n", "<C-p>", ":lua require('nvim-tree').toggle()<CR>", { noremap = true }) map("n", "<C-p>", ":lua require('nvim-tree').toggle()<CR>", { noremap = true })