Skip to content

Commit f1565a8

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

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
@@ -426,9 +426,6 @@ require('neodev').setup()
426426
local capabilities = vim.lsp.protocol.make_client_capabilities()
427427
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
428428

429-
-- Setup mason so it can manage external tooling
430-
require('mason').setup()
431-
432429
-- Ensure the servers above are installed
433430
local mason_lspconfig = require 'mason-lspconfig'
434431

0 commit comments

Comments
 (0)