Astronvim with telescope-fzf-native-nvim #30

Closed
opened 2025-12-29 04:20:54 +01:00 by adam · 2 comments
Owner

Originally created by @samos667 on GitHub (Jan 29, 2024).

First of all, thank you for your amazing work in creating documentation about the Nixos ecosystem. As a newbie like me, it's a gold mine!

I was very inspired by your dotfiles to build mine and rebuild my workstation with Nixos. I plan to migrate all my VMs from Debian to Nixos, so I start with my workstation and try to install Astronvim as IDE.

At first glance everything seems to work with your dotfiles, but I get a nasty error message on startup:
image

It seems to be related to telescope-fzf-native-nvim, but Telescope seems to be functional:
image

I don't really understand what this means. Can you please enlighten me ? Here is my repo with my dotfiles.

Originally created by @samos667 on GitHub (Jan 29, 2024). First of all, thank you for your amazing work in creating [documentation](https://nixos-and-flakes.thiscute.world/) about the Nixos ecosystem. As a newbie like me, it's a gold mine! I was very inspired by your dotfiles to build mine and rebuild my workstation with Nixos. I plan to migrate all my VMs from Debian to Nixos, so I start with my workstation and try to install Astronvim as IDE. At first glance everything seems to work with your dotfiles, but I get a nasty error message on startup: ![image](https://github.com/ryan4yin/nix-config/assets/50653464/06c8f2eb-f30e-434a-b96c-89485a7c6498) It seems to be related to telescope-fzf-native-nvim, but Telescope seems to be functional: ![image](https://github.com/ryan4yin/nix-config/assets/50653464/e2174a91-348f-4e63-8981-8b1e8c5ec73c) I don't really understand what this means. Can you please enlighten me ? [Here](https://github.com/samos667/nix-config) is my repo with my dotfiles.
adam closed this issue 2025-12-29 04:20:54 +01:00
Author
Owner

@ryan4yin commented on GitHub (Jan 29, 2024):

By default, lazy tries to download and compile telescope-fzf-native-nvim itself, but because NixOS does not conform to the FHS specification, the compilation will fail, resulting in this error.

But You've actually installed this plugin declaratively via Nix, so telescope actually works.

https://github.com/samos667/nix-config/blob/1a3127c/home/programs/editor/neovim/default.nix#L49-L52

      plugins = with pkgs.vimPlugins; [
        # search all the plugins using https://search.nixos.org/packages
        telescope-fzf-native-nvim
      ];

Solution:

  1. rm -rf ~/.local/share/nvim/lazy/telescope-fzf-native.nvim/ and then enter nvim again.
  2. If the error still exists, try to add { 'nvim-telescope/telescope-fzf-native.nvim', build = 'echo "skip build"' } into your init.lua.
@ryan4yin commented on GitHub (Jan 29, 2024): By default, lazy tries to download and compile telescope-fzf-native-nvim itself, but because NixOS does not conform to the FHS specification, the compilation will fail, resulting in this error. But You've actually installed this plugin declaratively via Nix, so telescope actually works. https://github.com/samos667/nix-config/blob/1a3127c/home/programs/editor/neovim/default.nix#L49-L52 ``` plugins = with pkgs.vimPlugins; [ # search all the plugins using https://search.nixos.org/packages telescope-fzf-native-nvim ]; ``` Solution: 1. `rm -rf ~/.local/share/nvim/lazy/telescope-fzf-native.nvim/` and then enter nvim again. 2. If the error still exists, try to add `{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'echo "skip build"' }` into your init.lua.
Author
Owner

@samos667 commented on GitHub (Jan 29, 2024):

I see, rm -rf ~/.local/share/nvim/lazy/telescope-fzf-native.nvim/ work perfectly. Thanks for that !

@samos667 commented on GitHub (Jan 29, 2024): I see, `rm -rf ~/.local/share/nvim/lazy/telescope-fzf-native.nvim/` work perfectly. Thanks for that !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/nix-config-ryan4yin#30