67 lines
1.4 KiB
Nix
67 lines
1.4 KiB
Nix
{
|
|
home =
|
|
{
|
|
config,
|
|
options,
|
|
lib,
|
|
pkgs,
|
|
inputs,
|
|
...
|
|
}:
|
|
{
|
|
options = {
|
|
neovim.dotfiles = lib.mkOption {
|
|
type = lib.types.nullOr lib.types.path;
|
|
default = null;
|
|
};
|
|
};
|
|
|
|
config = {
|
|
# only disable when stylix is present (loaded by desktop feature)
|
|
stylix.targets.neovim.enable = lib.mkIf (options ? stylix) false;
|
|
|
|
xdg.configFile."nvim" = lib.mkIf (config.neovim.dotfiles != null) {
|
|
source = config.neovim.dotfiles;
|
|
};
|
|
|
|
programs.neovim = {
|
|
enable = true;
|
|
vimAlias = true;
|
|
defaultEditor = true;
|
|
package = inputs.neovim-nightly-overlay.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
|
|
|
extraPackages = with pkgs; [
|
|
gcc
|
|
luajit
|
|
nodejs_22
|
|
tree-sitter
|
|
gnumake
|
|
osc
|
|
|
|
fd
|
|
ripgrep
|
|
bat
|
|
delta
|
|
|
|
pyright
|
|
typescript-language-server
|
|
lua-language-server
|
|
gopls
|
|
nil
|
|
nixd
|
|
|
|
nixpkgs-fmt
|
|
stylua
|
|
];
|
|
|
|
extraWrapperArgs = [
|
|
"--suffix"
|
|
"LD_LIBRARY_PATH"
|
|
":"
|
|
"${lib.makeLibraryPath [ pkgs.stdenv.cc.cc.lib ]}"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|