From 0c32b4612a4447bd54793987c66e0ccb637bd80e Mon Sep 17 00:00:00 2001 From: juan Date: Wed, 8 Sep 2021 20:54:53 +0800 Subject: [PATCH] add nvim-comment --- lua/pluginList.lua | 6 ++++++ plugin/packer_compiled.lua | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/lua/pluginList.lua b/lua/pluginList.lua index c7747f7..d2806f4 100644 --- a/lua/pluginList.lua +++ b/lua/pluginList.lua @@ -65,6 +65,12 @@ return require('packer').startup(function(use) } use {"machakann/vim-sandwich", event = "BufRead"} + use { + "terrortylor/nvim-comment", + config = function() require('nvim_comment').setup() end, + cmd = "CommentToggle" + } + -- navigation use { 'kyazdani42/nvim-tree.lua', diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua index c0b90c5..91fd9be 100644 --- a/plugin/packer_compiled.lua +++ b/plugin/packer_compiled.lua @@ -142,6 +142,13 @@ _G.packer_plugins = { needs_bufread = false, path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-base16" }, + ["nvim-comment"] = { + commands = { "CommentToggle" }, + config = { "\27LJ\1\2:\0\0\2\0\3\0\0064\0\0\0%\1\1\0>\0\2\0027\0\2\0>\0\1\1G\0\1\0\nsetup\17nvim_comment\frequire\0" }, + loaded = false, + needs_bufread = false, + path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-comment" + }, ["nvim-lspconfig"] = { after = { "lsp_signature.nvim", "lspkind-nvim", "nvim-lspinstall" }, loaded = false, @@ -241,9 +248,10 @@ time([[Config for gitsigns.nvim]], false) -- Command lazy-loads time([[Defining lazy-load commands]], true) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Neoformat lua require("packer.load")({'neoformat'}, { cmd = "Neoformat", l1 = , l2 = , bang = , args = }, _G.packer_plugins)]]) -pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file VimwikiIndex lua require("packer.load")({'vimwiki'}, { cmd = "VimwikiIndex", l1 = , l2 = , bang = , args = }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Telescope lua require("packer.load")({'telescope.nvim'}, { cmd = "Telescope", l1 = , l2 = , bang = , args = }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file NvimTreeToggle lua require("packer.load")({'nvim-tree.lua'}, { cmd = "NvimTreeToggle", l1 = , l2 = , bang = , args = }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file VimwikiIndex lua require("packer.load")({'vimwiki'}, { cmd = "VimwikiIndex", l1 = , l2 = , bang = , args = }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file CommentToggle lua require("packer.load")({'nvim-comment'}, { cmd = "CommentToggle", l1 = , l2 = , bang = , args = }, _G.packer_plugins)]]) time([[Defining lazy-load commands]], false) vim.cmd [[augroup packer_load_aucmds]]