Skip to content

Commit

Permalink
move mason setup earlier to fix problem
Browse files Browse the repository at this point in the history
  • Loading branch information
the0val committed Apr 7, 2023
1 parent 73ee473 commit a2bb2a5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions dot_config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ 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
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
{ 'j-hui/fidget.nvim', opts = {} },
{ 'j-hui/fidget.nvim', opts = {} },

-- Additional lua configuration, makes nvim stuff amazing!
'folke/neodev.nvim',
Expand Down Expand Up @@ -500,9 +500,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 a2bb2a5

Please sign in to comment.