From d52234a409b340938c39ecb29b9f9d44600c9731 Mon Sep 17 00:00:00 2001 From: minco Date: Thu, 21 Aug 2025 01:03:22 +0900 Subject: [PATCH] feat: comment --- lazy-lock.json | 4 +++ lua/plugins/blink.lua | 66 ++++++++++++++++++++--------------------- lua/plugins/comment.lua | 8 +++++ lua/plugins/neotree.lua | 14 +++++++++ 4 files changed, 59 insertions(+), 33 deletions(-) create mode 100644 lua/plugins/comment.lua create mode 100644 lua/plugins/neotree.lua diff --git a/lazy-lock.json b/lazy-lock.json index 2a1808e..6471a0a 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,4 +1,5 @@ { + "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, "Korean-IME.nvim": { "branch": "master", "commit": "c733599b9219e25bb05d8aa0467327edc769be94" }, "blink.cmp": { "branch": "main", "commit": "bae4bae0eedd1fa55f34b685862e94a222d5c6f8" }, "blink.download": { "branch": "main", "commit": "86361b98f3c8317904a08e3bd12cf3cdcbe3e925" }, @@ -13,12 +14,15 @@ "lualine.nvim": { "branch": "master", "commit": "b8c23159c0161f4b89196f74ee3a6d02cdc3a955" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "1ec4da522fa49dcecee8d190efda273464dd2192" }, "mason.nvim": { "branch": "main", "commit": "7dc4facca9702f95353d5a1f87daf23d78e31c2a" }, + "neo-tree.nvim": { "branch": "v3.x", "commit": "cea666ef965884414b1b71f6b39a537f9238bdb2" }, "neoconf.nvim": { "branch": "main", "commit": "5aeca07ecb2f506d32e81eb82b0ed384ac2a53c5" }, "neodev.nvim": { "branch": "main", "commit": "46aa467dca16cf3dfe27098042402066d2ae242d" }, + "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" }, "nvim-highlight-colors": { "branch": "main", "commit": "b42a5ccec7457b44e89f7ed3b3afb1b375bb2093" }, "nvim-lspconfig": { "branch": "master", "commit": "61fdd3a8609071ce44519e405f3424d84ec94d9d" }, "nvim-treesitter": { "branch": "main", "commit": "32cb9f9b9db71b0dc2454817727cd9a5d840658c" }, "nvim-web-devicons": { "branch": "master", "commit": "c2599a81ecabaae07c49ff9b45dcd032a8d90f1a" }, + "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, "snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" }, "toggleterm.nvim": { "branch": "main", "commit": "50ea089fc548917cc3cc16b46a8211833b9e3c7c" }, "trouble.nvim": { "branch": "main", "commit": "85bedb7eb7fa331a2ccbecb9202d8abba64d37b3" }, diff --git a/lua/plugins/blink.lua b/lua/plugins/blink.lua index 97ae887..48d268f 100644 --- a/lua/plugins/blink.lua +++ b/lua/plugins/blink.lua @@ -1,36 +1,36 @@ return { - 'saghen/blink.nvim', - build = 'cargo build --release', -- for delimiters - keys = { - -- chartoggle - { - '', - function() - require('blink.chartoggle').toggle_char_eol(';') - end, - mode = { 'n', 'v' }, - desc = 'Toggle ; at eol', - }, - { - ',', - function() - require('blink.chartoggle').toggle_char_eol(',') - end, - mode = { 'n', 'v' }, - desc = 'Toggle , at eol', - }, + 'saghen/blink.nvim', + build = 'cargo build --release', -- for delimiters + keys = { + -- chartoggle + { + '', + function() + require('blink.chartoggle').toggle_char_eol(';') + end, + mode = { 'n', 'v' }, + desc = 'Toggle ; at eol', + }, + { + ',', + function() + require('blink.chartoggle').toggle_char_eol(',') + end, + mode = { 'n', 'v' }, + desc = 'Toggle , at eol', + }, - -- tree - { '', 'BlinkTree reveal', desc = 'Reveal current file in tree' }, - { 'E', 'BlinkTree toggle', desc = 'Reveal current file in tree' }, - { 'e', 'BlinkTree toggle-focus', desc = 'Toggle file tree focus' }, - }, - -- all modules handle lazy loading internally - lazy = false, - opts = { - chartoggle = { enabled = true }, - tree = { enabled = true }, - cmp = { enabled = true }, - pairs = { enabled = true }, - } + -- tree + -- { '', 'BlinkTree reveal', desc = 'Reveal current file in tree' }, + -- { 'E', 'BlinkTree toggle', desc = 'Reveal current file in tree' }, + -- { 'e', 'BlinkTree toggle-focus', desc = 'Toggle file tree focus' }, + }, + -- all modules handle lazy loading internally + lazy = false, + opts = { + chartoggle = { enabled = true }, + tree = { enabled = false }, + cmp = { enabled = true }, + pairs = { enabled = true }, + } } diff --git a/lua/plugins/comment.lua b/lua/plugins/comment.lua new file mode 100644 index 0000000..88f827e --- /dev/null +++ b/lua/plugins/comment.lua @@ -0,0 +1,8 @@ +return { + 'numToStr/Comment.nvim', + opts = { + toggler = { + line = '/', + }, + }, +} diff --git a/lua/plugins/neotree.lua b/lua/plugins/neotree.lua new file mode 100644 index 0000000..8636968 --- /dev/null +++ b/lua/plugins/neotree.lua @@ -0,0 +1,14 @@ +return +{ + "nvim-neo-tree/neo-tree.nvim", + branch = "v3.x", + dependencies = { + "nvim-lua/plenary.nvim", + "MunifTanjim/nui.nvim", + "nvim-tree/nvim-web-devicons", -- optional, but recommended + }, + lazy = false, -- neo-tree will lazily load itself + keys = { + { 'e', 'Neotree', desc = 'Neotree Toggle' } + } +}