From 4ea16fa3f0b19f9002e72cfabba1216f3bcfbcac Mon Sep 17 00:00:00 2001 From: Patrick Auernig Date: Tue, 5 Mar 2024 18:50:10 +0100 Subject: [PATCH] Configure neoconf explicitly before lspconfig Because lazy's dependency resolution is unreliable --- lua/valeth/plugins/lsp.lua | 12 ++++++++++++ lua/valeth/plugins/neoconf.lua | 15 --------------- 2 files changed, 12 insertions(+), 15 deletions(-) delete mode 100644 lua/valeth/plugins/neoconf.lua diff --git a/lua/valeth/plugins/lsp.lua b/lua/valeth/plugins/lsp.lua index a884d7f..a59c6be 100644 --- a/lua/valeth/plugins/lsp.lua +++ b/lua/valeth/plugins/lsp.lua @@ -7,9 +7,21 @@ spec.dependencies = { "williamboman/mason-lspconfig.nvim", "nvim-telescope/telescope.nvim", "folke/neodev.nvim", + { "folke/neoconf.nvim", tag = "v1.2.2" }, } spec.config = function() + local neoconf = require("neoconf") + + neoconf.setup({ + -- ignore foreign imports + import = { + vscode = false, + coc = false, + nlsp = false, + } + }) + local mason = require("mason") local mason_lspconfig = require("mason-lspconfig") diff --git a/lua/valeth/plugins/neoconf.lua b/lua/valeth/plugins/neoconf.lua deleted file mode 100644 index d8c365e..0000000 --- a/lua/valeth/plugins/neoconf.lua +++ /dev/null @@ -1,15 +0,0 @@ -local spec = { - "folke/neoconf.nvim", - tag = "v1.2.2", -} - -spec.opts = { - -- ignore foreign imports - import = { - vscode = false, - coc = false, - nlsp = false, - } -} - -return spec