1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-24 12:09:46 +01:00
home-manager/tests/modules/programs/neovim/coc-config.nix
t4ccer addc78bea0
neovim: Add coc support (#2154)
This adds two new options: 'programs.neovim.coc.{enable,settings}`.

These settings offer a simple interface over `xdg.configFile."nvim/coc-settings.json`,
using the standard Nix' syntax instead of a multiline string.
2021-07-25 22:40:07 -04:00

27 lines
522 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.neovim = {
enable = true;
coc = {
enable = true;
settings = {
# my variable
foo = "bar";
};
};
};
nmt.script = ''
cocSettings="$TESTED/home-files/.config/nvim/coc-settings.json"
cocSettingsNormalized="$(normalizeStorePaths "$cocSettings")"
assertFileExists "$cocSettings"
assertFileContent "$cocSettingsNormalized" "${./coc-config.expected}"
'';
};
}