Skip to content

Commit de1db70

Browse files
committed
fix: move the Mason setup time forward from before
This commit fix the Mason [#1045](mason-org/mason.nvim#1045) issue. Quickly set up Mason to avoid DAP-related startup error messages.
1 parent 4a37a0a commit de1db70

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

init.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ require('lazy').setup({
7979
'neovim/nvim-lspconfig',
8080
dependencies = {
8181
-- Automatically install LSPs to stdpath for neovim
82-
'williamboman/mason.nvim',
82+
{ 'williamboman/mason.nvim', config = true },
8383
'williamboman/mason-lspconfig.nvim',
8484

8585
-- Useful status updates for LSP
@@ -428,9 +428,6 @@ require('neodev').setup()
428428
local capabilities = vim.lsp.protocol.make_client_capabilities()
429429
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
430430

431-
-- Setup mason so it can manage external tooling
432-
require('mason').setup()
433-
434431
-- Ensure the servers above are installed
435432
local mason_lspconfig = require 'mason-lspconfig'
436433

0 commit comments

Comments
 (0)