Summary Files Commits Branches @commit @diff @stats
path: root / lua / plugins / lsp.lua
diff options
context:
space:
mode:
Commitcdc6aa8d91792f5cef276ebaab5eced7df41d8ab (patch)
Author
 Syndamia <kamen@syndamia.com>
2024-09-15 10:25:45 +0300
Committer
 Syndamia <kamen@syndamia.com>
2024-09-15 10:25:45 +0300
Files78d319ec682304f84ecbd972397f731dcb8a36d6 /lua/plugins/lsp.lua
anderson-cdc6aa8d91792f5cef276ebaab5eced7df41d8ab.tar
anderson-cdc6aa8d91792f5cef276ebaab5eced7df41d8ab.tar.gz
anderson-cdc6aa8d91792f5cef276ebaab5eced7df41d8ab.zip
Parentc87afdd32bfb1e9983332189bedc9708fcc4b12d (diff)
fix(plugins): Fix for mason_lspconfig load order
1 files changed, 12 insertions, 6 deletions
-rw-r--r--lua/plugins/lsp.lua18
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,
+ },
}