Skip to content

Commit 34ed3f0

Browse files
NWVitjdevries
authored andcommitted
Replace nvim-lsp-installer with mason.nvim
1 parent 510ca59 commit 34ed3f0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

init.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ require('packer').startup(function(use)
1717
use 'nvim-treesitter/nvim-treesitter' -- Highlight, edit, and navigate code
1818
use 'nvim-treesitter/nvim-treesitter-textobjects' -- Additional textobjects for treesitter
1919
use 'neovim/nvim-lspconfig' -- Collection of configurations for built-in LSP client
20-
use 'williamboman/nvim-lsp-installer' -- Automatically install language servers to stdpath
20+
use 'williamboman/mason.nvim' -- Manage external editor tooling i.e LSP servers
21+
use 'williamboman/mason-lspconfig.nvim' -- Automatically install language servers to stdpath
2122
use { 'hrsh7th/nvim-cmp', requires = { 'hrsh7th/cmp-nvim-lsp' } } -- Autocompletion
2223
use { 'L3MON4D3/LuaSnip', requires = { 'saadparwaiz1/cmp_luasnip' } } -- Snippet Engine and Snippet Expansion
2324
use 'mjlbach/onedark.nvim' -- Theme inspired by Atom
@@ -303,11 +304,14 @@ end
303304
-- nvim-cmp supports additional completion capabilities
304305
local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
305306

307+
-- Setup mason so it can manage external tooling
308+
require('mason').setup()
309+
306310
-- Enable the following language servers
307311
local servers = { 'clangd', 'rust_analyzer', 'pyright', 'tsserver', 'sumneko_lua' }
308312

309313
-- Ensure the servers above are installed
310-
require('nvim-lsp-installer').setup {
314+
require('mason-lspconfig').setup {
311315
ensure_installed = servers,
312316
}
313317

0 commit comments

Comments
 (0)