feat(plugins): add comment.nvim and ts-context-commentstring

This commit is contained in:
Nicolas Goudry 2024-06-02 22:45:29 +02:00
parent 2ad46396b9
commit 6d277fcd66
No known key found for this signature in database
GPG key ID: 5FC434D9FFD1DF44
2 changed files with 20 additions and 0 deletions

13
plugins/comment.nix Normal file
View file

@ -0,0 +1,13 @@
# homepage: https://github.com/numtostr/comment.nvim/
# nixvim doc: https://nix-community.github.io/nixvim/plugins/comment/index.html
_:
{
opts = {
enable = true;
settings.pre_hook = ''
require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook()
'';
};
}

View file

@ -0,0 +1,7 @@
# homepage: https://github.com/JoosepAlviste/nvim-ts-context-commentstring
# nixvim doc: https://nix-community.github.io/nixvim/plugins/ts-context-commentstring.html
_:
{
opts.enable = true;
}