From cdc6aa8d91792f5cef276ebaab5eced7df41d8ab Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 15 Sep 2024 10:25:45 +0300 Subject: fix(plugins): Fix for mason_lspconfig load order --- lua/plugins/lsp.lua | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'lua') diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index d778448..1aa098d 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -28,10 +28,11 @@ return { -- LSP server utilisation { "neovim/nvim-lspconfig", - dependencies = { 'VonHeikemen/lsp-zero.nvim' }, - lazy = true, - opts = { + dependencies = { 'VonHeikemen/lsp-zero.nvim', 'williamboman/mason-lspconfig.nvim' }, + lazy = false, + opts = { -- :h lspconfig-all awk_ls = { }, + bashls = { }, lua_ls = { }, }, config = function(_, opts) @@ -107,12 +108,11 @@ return { end, }, -- Download plugins automatically - { 'williamboman/mason.nvim', config = true, }, { 'williamboman/mason-lspconfig.nvim', - lazy = false, - dependencies = { 'neovim/nvim-lspconfig' }, + lazy = true, opts = { + automatic_installation = true, handlers = { function(server_name) require('lspconfig')[server_name].setup({}) @@ -120,4 +120,10 @@ return { }, }, }, + { + 'williamboman/mason.nvim', + dependencies = { 'williamboman/mason-lspconfig.nvim' }, + lazy = false, + config = true, + }, } -- cgit v1.3.1-23-gd82d