mirror of https://github.com/sgoudham/dotfiles.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
590 B
Nix
29 lines
590 B
Nix
1 year ago
|
{pkgs, ...}: {
|
||
|
programs.neovim = {
|
||
|
enable = true;
|
||
|
vimAlias = true;
|
||
|
viAlias = true;
|
||
|
defaultEditor = true;
|
||
|
withNodeJs = true;
|
||
|
|
||
|
package = pkgs.symlinkJoin {
|
||
|
name = "neovim";
|
||
|
paths = [pkgs.neovim-nightly];
|
||
|
buildInputs = [pkgs.makeWrapper pkgs.gcc];
|
||
|
postBuild = "wrapProgram $out/bin/nvim --prefix CC : ${pkgs.lib.getExe pkgs.gcc}";
|
||
|
};
|
||
|
|
||
|
extraPackages = with pkgs; [
|
||
|
tree-sitter
|
||
|
];
|
||
|
};
|
||
|
|
||
|
home.sessionVariables = {
|
||
|
SUDO_EDITOR = "nvim";
|
||
|
};
|
||
|
|
||
|
programs.fish.shellAbbrs = {
|
||
|
"lvim" = "NVIM_APPNAME=lazyvim nvim";
|
||
|
};
|
||
|
}
|