Skip to content

Commit 192c32e

Browse files
restrayTimothée Belhomme
authored andcommitted
Move mason setup up further
This helps if a user needs to find a mason executable
1 parent 9687d2f commit 192c32e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

init.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,11 @@ require('which-key').register {
458458
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
459459
}
460460

461+
-- mason-lspconfig requires that these setup functions are called in this order
462+
-- before setting up the servers.
463+
require('mason').setup()
464+
require('mason-lspconfig').setup()
465+
461466
-- Enable the following language servers
462467
-- Feel free to add/remove any LSPs that you want here. They will automatically be installed.
463468
--
@@ -489,11 +494,6 @@ require('neodev').setup()
489494
local capabilities = vim.lsp.protocol.make_client_capabilities()
490495
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
491496

492-
-- mason-lspconfig requires that these setup functions are called in this order
493-
-- before setting up the servers.
494-
require('mason').setup()
495-
require('mason-lspconfig').setup()
496-
497497
-- Ensure the servers above are installed
498498
local mason_lspconfig = require 'mason-lspconfig'
499499

0 commit comments

Comments
 (0)