From c84e455173da3f3624589187d158835fa477dc01 Mon Sep 17 00:00:00 2001 From: Maciej Lebiest Date: Sun, 19 Feb 2023 19:16:55 +0100 Subject: [PATCH] various plugins adjustements --- lua/lazy-load.lua | 45 ++++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/lua/lazy-load.lua b/lua/lazy-load.lua index e30dd43..17fed92 100644 --- a/lua/lazy-load.lua +++ b/lua/lazy-load.lua @@ -2,55 +2,57 @@ require("lazy").setup({ -- Nvim-tree stuff { 'nvim-tree/nvim-web-devicons' }, -- optional, for file icons { 'nvim-tree/nvim-tree.lua', - config = require('plugins.nvim-tree').config, + opts = require('plugins.nvim-tree').config, keys = require('plugins.nvim-tree').keys }, { 'nvim-treesitter/nvim-treesitter', -- treesitter need to be configured after load, -- so let here be init, not config init = require('plugins.treesitter'), - build = ':TSUpdate' }, + build = ':TSUpdate', + priority = 400 }, -- neovim lsp plugins and depencencies - { 'neovim/nvim-lspconfig', - init = require('plugins.nvim-lspconfig').init, - priority = 20 }, { 'hrsh7th/cmp-nvim-lsp' }, { 'hrsh7th/cmp-buffer' }, { 'hrsh7th/cmp-cmdline' }, { 'hrsh7th/cmp-path' }, { 'hrsh7th/nvim-cmp', - init = require('plugins.nvim-cmp').init, + config = require('plugins.nvim-cmp').init, dependencies = { 'onsails/lspkind.nvim' } }, { 'williamboman/mason.nvim', - config = {}, - priority = 30 }, + opts = {}, + priority = 200 }, -- mason-lspconfig might need disabling on first run { 'williamboman/mason-lspconfig.nvim', - config = require('plugins.mason-lspconfig').config, + opts = require('plugins.mason-lspconfig').config, dependencies = { 'williamboman/mason.nvim' }, - priority = 55 }, + priority = 150 }, + { 'neovim/nvim-lspconfig', + config = require('plugins.nvim-lspconfig').init, + priority = 100 }, { 'mfussenegger/nvim-lint', - init = require('plugins.nvim-lint').init }, + conifg = require('plugins.nvim-lint').init }, {}, { 'folke/trouble.nvim', - config = require('plugins.trouble').config, + opts = require('plugins.trouble').config, keys = require("plugins.trouble").keys }, -- various plugins { 'lewis6991/gitsigns.nvim', - config = require('plugins.gitsigns').config }, + opts = require('plugins.gitsigns').config }, { 'petertriho/nvim-scrollbar', - config = {} }, - { 'kevinhwang91/nvim-hlslens', config = {}, + opts = {} }, + { 'kevinhwang91/nvim-hlslens', + opts = {}, keys = require('plugins.hlslens').keys }, { 'L3MON4D3/LuaSnip', version = '*' }, { 'saadparwaiz1/cmp_luasnip' }, { 'lambdalisue/suda.vim' }, { 'akinsho/bufferline.nvim', version = '*', - config = require('plugins.bufferline').config }, + opts = require('plugins.bufferline').config }, { 'gorbit99/codewindow.nvim', - config = require('plugins.codewindow').config, + opts = require('plugins.codewindow').config, init = require('plugins.codewindow').build }, { 'preservim/nerdcommenter', @@ -61,19 +63,20 @@ require("lazy").setup({ { 'vmware-archive/salt-vim' }, { 'stephpy/vim-yaml' }, -- for proper sls syntax highlighting when jinja { 'lukas-reineke/indent-blankline.nvim', - config = require('plugins.indent-blankline').config }, + opts = require('plugins.indent-blankline').config }, { 'MunifTanjim/nui.nvim' }, { 'folke/noice.nvim', - config = require("plugins.noice").config, + opts = require("plugins.noice").config, dependencies = { "MunifTanjim/nui.nvim", -- OPTIONAL: -- `nvim-notify` is only needed, if you want to use the notification view. -- If not available, we use `mini` as the fallback "rcarriga/nvim-notify", } }, - { 'rcarriga/nvim-notify', config = require('plugins.nvim-notify').config }, + { 'rcarriga/nvim-notify', + opts = require('plugins.nvim-notify').config }, { 'nvim-lualine/lualine.nvim', - config = require('plugins.lualine').config }, + opts = require('plugins.lualine').config }, { 'RRethy/vim-illuminate' }, { 'sheerun/vim-polyglot' },