mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
commentary: init plugin
This commit is contained in:
parent
2ca3c09635
commit
82158fba9c
3 changed files with 22 additions and 0 deletions
|
@ -51,6 +51,7 @@
|
|||
|
||||
plugins.undotree.enable = true;
|
||||
plugins.gitgutter.enable = true;
|
||||
plugins.commentary.enable = true;
|
||||
|
||||
plugins.lsp = {
|
||||
enable = true;
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
./git/gitgutter.nix
|
||||
|
||||
./utils/undotree.nix
|
||||
./utils/commentary.nix
|
||||
|
||||
./languages/treesitter.nix
|
||||
|
||||
|
|
20
plugins/utils/commentary.nix
Normal file
20
plugins/utils/commentary.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.programs.nixvim.plugins.commentary;
|
||||
in
|
||||
{
|
||||
# TODO Add support for aditional filetypes. This requires autocommands!
|
||||
|
||||
options = {
|
||||
programs.nixvim.plugins.commentary = {
|
||||
enable = mkEnableOption "Enable commentary";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.nixvim = {
|
||||
extraPlugins = [ pkgs.vimPlugins.vim-commentary ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue