From af18201866ea29d179fd61bacd36b849a7d86a7d Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Mon, 18 Sep 2023 23:13:11 +0200 Subject: refactor lsp configurations --- lua/plugins/lsp.lua | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) (limited to 'lua/plugins/lsp.lua') diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 1c0a855..60ea560 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -1,12 +1,7 @@ return { "neovim/nvim-lspconfig", dependencies = { - { - "jose-elias-alvarez/null-ls.nvim", - dependencies = { - "adalessa/php-code-actions.nvim", - }, - }, + "jose-elias-alvarez/null-ls.nvim", { "williamboman/mason.nvim", opts = { @@ -17,23 +12,16 @@ return { }, "williamboman/mason-lspconfig.nvim", "WhoIsSethDaniel/mason-tool-installer.nvim", - { - "j-hui/fidget.nvim", - enabled = false, - opts = { - window = { - blend = 0, - }, - sources = { - ["null-ls"] = { - ignore = true, - }, - }, - }, - }, }, event = "VeryLazy", - config = function() - require "alpha.lsp" - end, + main = "alpha.lsp", + opts = { + mason = { + enable = true, + auto_install = false, + }, + servers = { + phpactor = { enable = true }, + }, + }, } -- cgit v1.2.3