Skip to content

Commit

Permalink
fix: move the Mason setup time forward from before
Browse files Browse the repository at this point in the history
This commit fix the Mason [nvim-lua#1045](williamboman/mason.nvim#1045) issue. Quickly set up Mason to avoid DAP-related startup error messages.
  • Loading branch information
KudoLayton committed Mar 6, 2023
1 parent 4a37a0a commit de1db70
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ require('lazy').setup({
'neovim/nvim-lspconfig',
dependencies = {
-- Automatically install LSPs to stdpath for neovim
'williamboman/mason.nvim',
{ 'williamboman/mason.nvim', config = true },
'williamboman/mason-lspconfig.nvim',

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

-- Setup mason so it can manage external tooling
require('mason').setup()

-- Ensure the servers above are installed
local mason_lspconfig = require 'mason-lspconfig'

Expand Down

0 comments on commit de1db70

Please sign in to comment.