config-new/modules/common/neovim.nix
2025-05-29 19:53:10 +02:00

48 lines
947 B
Nix

{ pkgs, config, lib, ... }: let
inherit (lib) optionals;
in {
environment.variables.EDITOR = "nvim";
home-manager.sharedModules = [{
programs.neovim = {
enable = true;
extraLuaConfig = lib.fileContents ../home/dotfiles/nvim/init.lua;
};
home.sessionVariables = {
EDITOR = "nvim";
};
home.packages = with pkgs; [
vimPlugins.markdown-preview-nvim
# Lua
luajitPackages.luarocks_bootstrap
lua-language-server
python311
nodejs
nodePackages."sass"
#llvmPackages_20.clangWithLibcAndBasicRtAndLibcxx
] ++ optionals config.onLinux [
gcc_multi
];
home.file = lib.mkIf config.onLinux {
".config/i3status" = {
source = ../home/dotfiles/i3status;
force = true;
recursive = true;
};
};
# TODO: this
# programs.npm.npmrc = ''
# prefix=~/.npm-packages
# color=true
# '';
}];
}