2025-02-10 23:32:14 +01:00
|
|
|
{
|
2025-01-31 21:24:47 +01:00
|
|
|
imports = [ ./stubs.nix ];
|
|
|
|
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
coc = {
|
2021-07-26 04:40:07 +02:00
|
|
|
enable = true;
|
2025-01-31 21:24:47 +01:00
|
|
|
settings = {
|
|
|
|
# my variable
|
|
|
|
foo = "bar";
|
2021-07-26 04:40:07 +02:00
|
|
|
};
|
|
|
|
};
|
2025-01-31 21:24:47 +01:00
|
|
|
};
|
2021-07-26 04:40:07 +02:00
|
|
|
|
2025-01-31 21:24:47 +01:00
|
|
|
nmt.script = ''
|
|
|
|
cocSettings="$TESTED/home-files/.config/nvim/coc-settings.json"
|
|
|
|
cocSettingsNormalized="$(normalizeStorePaths "$cocSettings")"
|
2021-07-26 04:40:07 +02:00
|
|
|
|
2025-01-31 21:24:47 +01:00
|
|
|
assertFileExists "$cocSettings"
|
|
|
|
assertFileContent "$cocSettingsNormalized" "${./coc-config.expected}"
|
|
|
|
'';
|
2021-07-26 04:40:07 +02:00
|
|
|
}
|
|
|
|
|