Summary Files Commits Branches @commit @diff @stats
path: root / lua / plugins / lsp.lua
diff options
context:
space:
mode:
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,
+ },
}