From cd47d8f48bf031f484ca7d0bd0c4a6f0b49b9045 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Mon, 28 Jun 2021 17:03:12 +0200 Subject: [PATCH] Add comment plugin --- configs/nvim/lua/plugins/init.lua | 2 ++ configs/nvim/lua/plugins/nvim-comment.lua | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 configs/nvim/lua/plugins/nvim-comment.lua diff --git a/configs/nvim/lua/plugins/init.lua b/configs/nvim/lua/plugins/init.lua index d15c736..01b179b 100644 --- a/configs/nvim/lua/plugins/init.lua +++ b/configs/nvim/lua/plugins/init.lua @@ -3,6 +3,7 @@ function configure_packages() call_with_helpers(require('plugins.compe').init) call_with_helpers(require('plugins.nvim-treesitter').init) call_with_helpers(require('plugins.web-devicons').init) + call_with_helpers(require('plugins.nvim-comment').init) end function install_packages() @@ -27,6 +28,7 @@ function install_packages() use 'kyazdani42/nvim-web-devicons' -- removing this line doesn't change the error use 'kyazdani42/nvim-tree.lua' use 'kdheepak/lazygit.nvim' + use 'terrortylor/nvim-comment' end function init() diff --git a/configs/nvim/lua/plugins/nvim-comment.lua b/configs/nvim/lua/plugins/nvim-comment.lua new file mode 100644 index 0000000..8224471 --- /dev/null +++ b/configs/nvim/lua/plugins/nvim-comment.lua @@ -0,0 +1,7 @@ +local function init() + require('nvim_comment').setup() +end + +return { + init = init +} \ No newline at end of file