From 938945b842f6effc15d872c08631dbf6a2aec216 Mon Sep 17 00:00:00 2001 From: Jaroslaw Konik Date: Fri, 17 May 2024 16:29:50 +0200 Subject: [PATCH] updatE --- init.lua | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/init.lua b/init.lua index 3d5e66c..715f256 100644 --- a/init.lua +++ b/init.lua @@ -14,9 +14,13 @@ vim.opt.rtp:prepend(lazypath) if vim.g.vscode then require("lazy").setup({ - "terrortylor/nvim-comment", + { + "terrortylor/nvim-comment", + config = function() + require("nvim_comment").setup() + end + }, }) - require("nvim_comment").setup() return end @@ -69,7 +73,13 @@ require("lazy").setup({ 'hrsh7th/cmp-vsnip', 'hrsh7th/vim-vsnip', "neovim/nvim-lspconfig", - "terrortylor/nvim-comment", + + { + "terrortylor/nvim-comment", + config = function() + require("nvim_comment").setup() + end + }, "nvim-tree/nvim-tree.lua", { 'romgrk/barbar.nvim', @@ -125,11 +135,7 @@ require("lazy").setup({ vim.o.timeout = true vim.o.timeoutlen = 300 end, - opts = { - -- your configuration comes here - -- or leave it empty to use the default settings - -- refer to the configuration section below - } + opts = {} }, "dstein64/nvim-scrollview", "sindrets/diffview.nvim", @@ -185,8 +191,6 @@ cmp.setup({ }) }) -require("nvim_comment").setup() - require("neodev").setup({ override = function(_, library) library.enabled = true