Move nvim activation script to nvim-specific file
This commit is contained in:
parent
78ae53b3e3
commit
992190a351
2 changed files with 23 additions and 20 deletions
11
home.nix
11
home.nix
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -60,15 +60,6 @@
|
||||||
wget
|
wget
|
||||||
xz
|
xz
|
||||||
];
|
];
|
||||||
|
|
||||||
activation = {
|
|
||||||
updateAppCaches = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
|
||||||
# neovim
|
|
||||||
echo -n '[nvim] Removing luacache file: '
|
|
||||||
$DRY_RUN_CMD rm -f $HOME/.cache/nvim/luacache*
|
|
||||||
echo 'Done'
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
customPlugins = import ./plugins.nix { inherit pkgs; };
|
customPlugins = import ./plugins.nix { inherit pkgs; };
|
||||||
|
@ -400,15 +400,27 @@ in
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file."${nvim-spell-directory}/de.utf-8.spl".source = builtins.fetchurl {
|
home = {
|
||||||
url = "http://ftp.vim.org/pub/vim/runtime/spell/de.utf-8.spl";
|
activation = {
|
||||||
sha256 = "73c7107ea339856cdbe921deb92a45939c4de6eb9c07261da1b9dd19f683a3d1";
|
neovimActivation = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
};
|
echo -n 'Removing luacache files: '
|
||||||
|
$DRY_RUN_CMD rm -f $HOME/.cache/nvim/luacache*
|
||||||
|
echo 'Done'
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
home.file."${nvim-spell-directory}/de.utf-8.sug".source = builtins.fetchurl {
|
sessionVariables.EDITOR = "nvim";
|
||||||
url = "http://ftp.vim.org/pub/vim/runtime/spell/de.utf-8.sug";
|
|
||||||
sha256 = "13d0ecf92863d89ef60cd4a8a5eb2a5a13a0e8f9ba8d1c6abe47aba85714a948";
|
|
||||||
};
|
|
||||||
|
|
||||||
home.sessionVariables.EDITOR = "nvim";
|
file = {
|
||||||
|
"${nvim-spell-directory}/de.utf-8.spl".source = builtins.fetchurl {
|
||||||
|
url = "http://ftp.vim.org/pub/vim/runtime/spell/de.utf-8.spl";
|
||||||
|
sha256 = "73c7107ea339856cdbe921deb92a45939c4de6eb9c07261da1b9dd19f683a3d1";
|
||||||
|
};
|
||||||
|
|
||||||
|
"${nvim-spell-directory}/de.utf-8.sug".source = builtins.fetchurl {
|
||||||
|
url = "http://ftp.vim.org/pub/vim/runtime/spell/de.utf-8.sug";
|
||||||
|
sha256 = "13d0ecf92863d89ef60cd4a8a5eb2a5a13a0e8f9ba8d1c6abe47aba85714a948";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue