1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-27 13:59:48 +01:00
neovim-flake/modules/comments/comment-nvim/config.nix
2023-02-27 17:52:18 +03:00

20 lines
304 B
Nix

{
pkgs,
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.comments.comment-nvim;
in {
config = mkIf cfg.enable {
vim.startPlugins = [
"comment-nvim"
];
vim.luaConfigRC.comment-nvim = nvim.dag.entryAnywhere ''
require('Comment').setup()
'';
};
}