Skip to content

Commit 6df772f

Browse files
Anthony-Fiddessfrick
authored andcommitted
Move mason setup up further
This helps if a user needs to find a mason executable
1 parent 2d00eaf commit 6df772f

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
@@ -461,6 +461,11 @@ require('which-key').register {
461461
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
462462
}
463463

464+
-- mason-lspconfig requires that these setup functions are called in this order
465+
-- before setting up the servers.
466+
require('mason').setup()
467+
require('mason-lspconfig').setup()
468+
464469
-- Enable the following language servers
465470
-- Feel free to add/remove any LSPs that you want here. They will automatically be installed.
466471
--
@@ -493,11 +498,6 @@ require('neodev').setup()
493498
local capabilities = vim.lsp.protocol.make_client_capabilities()
494499
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
495500

496-
-- mason-lspconfig requires that these setup functions are called in this order
497-
-- before setting up the servers.
498-
require('mason').setup()
499-
require('mason-lspconfig').setup()
500-
501501
-- Ensure the servers above are installed
502502
local mason_lspconfig = require 'mason-lspconfig'
503503

0 commit comments

Comments
 (0)