1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 12:19:48 +01:00
home-manager/tests/modules/programs/neovim/extra-lua-init.nix
Wael Nasreddine a7d3f51e9e
[backport #3639] programs.neovim: add extraLuaConfig (#3727)
Co-authored-by: Guillaume Desforges <guillaume.desforges.pro@gmail.com>
2023-03-01 14:52:37 -08:00

23 lines
391 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.neovim = {
enable = true;
extraLuaConfig = ''
-- extraLuaConfig
'';
};
nmt.script = ''
nvimFolder="home-files/.config/nvim"
assertFileContent "$nvimFolder/init.lua" ${
pkgs.writeText "init.lua-expected" ''
-- extraLuaConfig
''
}
'';
};
}