mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 17:58:51 +02:00
fix(neoconf): do neoconf setup in lspconfig setup. Fixes #1070
This commit is contained in:
parent
5204aacf8d
commit
9e8ce289d1
1 changed files with 6 additions and 1 deletions
|
@ -4,7 +4,7 @@ return {
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{ "folke/neoconf.nvim", cmd = "Neoconf", config = true },
|
{ "folke/neoconf.nvim", cmd = "Neoconf", config = false, dependencies = { "nvim-lspconfig" } },
|
||||||
{ "folke/neodev.nvim", opts = {} },
|
{ "folke/neodev.nvim", opts = {} },
|
||||||
"mason.nvim",
|
"mason.nvim",
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"williamboman/mason-lspconfig.nvim",
|
||||||
|
@ -89,6 +89,11 @@ return {
|
||||||
---@param opts PluginLspOpts
|
---@param opts PluginLspOpts
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
local Util = require("lazyvim.util")
|
local Util = require("lazyvim.util")
|
||||||
|
|
||||||
|
if Util.has("neoconf.nvim") then
|
||||||
|
local plugin = require("lazy.core.config").spec.plugins["neoconf.nvim"]
|
||||||
|
require("neoconf").setup(require("lazy.core.plugin").values(plugin, "opts", false))
|
||||||
|
end
|
||||||
-- setup autoformat
|
-- setup autoformat
|
||||||
require("lazyvim.plugins.lsp.format").setup(opts)
|
require("lazyvim.plugins.lsp.format").setup(opts)
|
||||||
-- setup formatting and keymaps
|
-- setup formatting and keymaps
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue