Neovim: Difference between revisions

m link to search.nixos.org
add neovim-fhs wrapper from nixpkgs pr 334032 and link the related issue
Line 258: Line 258:
<!--T:20-->
<!--T:20-->
The configuration for LunarVim is stored in <code>./config/lvim</code>.
The configuration for LunarVim is stored in <code>./config/lvim</code>.
==== FHS wrapper ====
You can create a custom neovim FHS wrapper
<syntaxhighlight lang="nix">
{
  buildFHSEnv,
  writeShellScript,
  neovim,
}:
buildFHSEnv {
  name = "nvim-fhs";
  targetPkgs = pkgs: [ neovim ];
  runScript = writeShellScript "nvim-fhs.sh" ''
    exec ${neovim}/bin/nvim "$@"
  '';
}
</syntaxhighlight>
this is copied from [nixpkgs#334032][https://github.com/NixOS/nixpkgs/pull/334032]
See also: [this configuration][https://github.com/NixOS/nixpkgs/issues/281219#issuecomment-2284713258] which extends upon the above to setup mason.nvim


== Troubleshooting == <!--T:59-->
== Troubleshooting == <!--T:59-->