diff options
| author | Anthony Fiddes <11233666+Anthony-Fiddes@users.noreply.github.com> | 2023-10-07 16:14:26 -0700 |
|---|---|---|
| committer | Anthony Fiddes <11233666+Anthony-Fiddes@users.noreply.github.com> | 2023-10-07 16:14:26 -0700 |
| commit | 267335edf51bb04dbc07d0343d489c7a769cf6dc (patch) | |
| tree | e35ad16bcc0e31f1c92cb84846ec49cf95a54568 /nvim/init.lua | |
| parent | d34001a678d62dde64ed9003aec03f08edb53f6a (diff) | |
| download | dots-267335edf51bb04dbc07d0343d489c7a769cf6dc.tar.gz | |
Move mason setup up further
This helps if a user needs to find a mason executable
Diffstat (limited to 'nvim/init.lua')
| -rw-r--r-- | nvim/init.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index 4438ca1..11f55d0 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -458,6 +458,11 @@ require('which-key').register { ['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' }, } +-- mason-lspconfig requires that these setup functions are called in this order +-- before setting up the servers. +require('mason').setup() +require('mason-lspconfig').setup() + -- Enable the following language servers -- Feel free to add/remove any LSPs that you want here. They will automatically be installed. -- @@ -489,11 +494,6 @@ require('neodev').setup() local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities) --- mason-lspconfig requires that these setup functions are called in this order --- before setting up the servers. -require('mason').setup() -require('mason-lspconfig').setup() - -- Ensure the servers above are installed local mason_lspconfig = require 'mason-lspconfig' |