Neovim: switch lsp to use mason automatic setup

This commit is contained in:
Marko Korhonen 2023-04-26 21:41:28 +03:00
parent b151067a21
commit d19e5a8b6a
4 changed files with 123 additions and 128 deletions

View file

@ -82,22 +82,16 @@ local plugins = {
{ "folke/which-key.nvim", config = true },
-- Package manager for LSP servers, DAP adapters etc.
{ "williamboman/mason.nvim", config = true },
-- Install LSP server executables with Mason
{
"williamboman/mason-lspconfig.nvim",
config = true,
"williamboman/mason.nvim",
config = require("plugins.mason").setup,
dependencies = {
"neovim/nvim-lspconfig",
"williamboman/mason-lspconfig.nvim",
"WhoIsSethDaniel/mason-tool-installer.nvim",
},
},
{
"WhoIsSethDaniel/mason-tool-installer.nvim",
config = true,
},
-- Configs for built-in LSP
{ "neovim/nvim-lspconfig", config = require("plugins.lspconfig").setup },
-- Additional LSP features for Java
"mfussenegger/nvim-jdtls",