mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 14:20:23 +01:00
Astronvim with telescope-fzf-native-nvim #30
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:

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

I don't really understand what this means. Can you please enlighten me ? Here is my repo with my dotfiles.
@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
Solution:
rm -rf ~/.local/share/nvim/lazy/telescope-fzf-native.nvim/and then enter nvim again.{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'echo "skip build"' }into your init.lua.@samos667 commented on GitHub (Jan 29, 2024):
I see,
rm -rf ~/.local/share/nvim/lazy/telescope-fzf-native.nvim/work perfectly. Thanks for that !