mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 04:09:47 +01:00
9621e9ab80
* programs.neovim: add extraLuaConfig Add a configuration option to add custom lua configuration lines to `lua.init`. * apply review: formatting * apply review: fix test
23 lines
391 B
Nix
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
|
|
''
|
|
}
|
|
'';
|
|
};
|
|
}
|