NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.47k stars 12.97k forks source link

Package request: neovim-fhs #281219

Open kenos1 opened 5 months ago

kenos1 commented 5 months ago

Project description

Neovim, but in a FHS environment, like vscode-fhs and vscodium-fhs.

Add a :+1: reaction to issues you find important.

teto commented 5 months ago

I wont work on this as I can do everything I need with nix but I am curious about your usecase, why do you need this ?

kenos1 commented 5 months ago

I want to use mason.nvim for lsp and dap servers that are unavailable on the NixOS repositories

rrekaF commented 3 months ago

I wanted to run codeium ( AI copilot thingy). To get it to work in vscode i had to get the fhs version so nvim would be cool

IogaMaster commented 3 months ago

Currently researching how to use buildFHSEnv to create this package.

elmomk commented 1 month ago

I wanted to run codeium ( AI copilot thingy). To get it to work in vscode i had to get the fhs version so nvim would be cool

@rrekaF The codeium plugin for neovim has a wrapper option specifically for this usecase: https://github.com/Exafunction/codeium.nvim?tab=readme-ov-file#options

wrapper: the path to a wrapper script/binary that is used to execute any binaries not listed under tools. This is primarily useful for NixOS, where a FHS wrapper can be used for the downloaded codeium server.

You can choose between a variety of wrappers as mentioned on: https://discourse.nixos.org/t/how-to-make-nixos-so-easy-that-people-can-be-productive-up-front-without-having-to-first-learn-the-nix-language/5625/10 Steam-run is the easiest to get working out of the gate. Might not be the best solution, but codeium works :)

My nvim lazy config:

  {
    "Exafunction/codeium.nvim",
    dependencies = {
        "nvim-lua/plenary.nvim",
        "hrsh7th/nvim-cmp",
    },
    opts = {
      wrapper = 'steam-run',
    },
},