summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKudoLayton <lhslhg@gmail.com>2023-04-13 22:34:06 +0900
committerGitHub <noreply@github.com>2023-04-13 09:34:06 -0400
commit8d8fbd15bfefde43303ffa41b4c0d9047c0dae5a (patch)
treedadc7848842b6580ebe03f74386cfa43b1ff8300
parent06192307f3302b75a6d9d2ac5ba382cafccf9c3f (diff)
fix: move the Mason setup time forward from before (#210)
This commit fix the Mason [#1045](https://github.com/williamboman/mason.nvim/issues/1045) issue. Quickly set up Mason to avoid DAP-related startup error messages.
-rw-r--r--init.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index 56975a6..1cfa228 100644
--- a/init.lua
+++ b/init.lua
@@ -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
@@ -426,9 +426,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'