From 6d277fcd667238afe45b578c15b3e17a15df2451 Mon Sep 17 00:00:00 2001 From: Nicolas Goudry Date: Sun, 2 Jun 2024 22:45:29 +0200 Subject: [PATCH] feat(plugins): add comment.nvim and ts-context-commentstring --- plugins/comment.nix | 13 +++++++++++++ plugins/ts-context-commentstring.nix | 7 +++++++ 2 files changed, 20 insertions(+) create mode 100644 plugins/comment.nix create mode 100644 plugins/ts-context-commentstring.nix diff --git a/plugins/comment.nix b/plugins/comment.nix new file mode 100644 index 0000000..3abe9c4 --- /dev/null +++ b/plugins/comment.nix @@ -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() + ''; + }; +} diff --git a/plugins/ts-context-commentstring.nix b/plugins/ts-context-commentstring.nix new file mode 100644 index 0000000..e025dd9 --- /dev/null +++ b/plugins/ts-context-commentstring.nix @@ -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; +}