From 2f7f5126f3d61afb8e65905a05635bc16cc3ba36 Mon Sep 17 00:00:00 2001 From: maye Date: Wed, 21 May 2025 15:47:26 +0800 Subject: [PATCH] add comment tool --- lazy-lock.json | 1 + lua/configs/mappings.lua | 2 +- lua/plugins/comment.lua | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 lua/plugins/comment.lua diff --git a/lazy-lock.json b/lazy-lock.json index 422cd6f..14ba61e 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,4 +1,5 @@ { + "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, "blink.cmp": { "branch": "main", "commit": "022521a8910a5543b0251b21c9e1a1e989745796" }, "conform.nvim": { "branch": "master", "commit": "a4bb5d6c4ae6f32ab13114e62e70669fa67745b9" }, "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" }, diff --git a/lua/configs/mappings.lua b/lua/configs/mappings.lua index ad3aa5e..472bb8d 100644 --- a/lua/configs/mappings.lua +++ b/lua/configs/mappings.lua @@ -1,2 +1,2 @@ local map = vim.keymap.set -map("n", "s", ":w", {}) \ No newline at end of file +map("n", "s", ":w", {}) diff --git a/lua/plugins/comment.lua b/lua/plugins/comment.lua new file mode 100644 index 0000000..a6c537c --- /dev/null +++ b/lua/plugins/comment.lua @@ -0,0 +1,5 @@ +return { + "numToStr/Comment.nvim", + event = { "InsertEnter" }, + opts = {}, +}