Do not use config setting in mason - fix nvim-java (#2948)

* Do not use config setting in mason
* plugins: remove un-needed config() calls

---------

Co-authored-by: Sidhanth Rathod <siduck@tutanota.com>
This commit is contained in:
Randy D. Wallace Jr. 2024-07-27 11:21:10 -05:00 committed by GitHub
parent c383cd4463
commit 4a2cefa5c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
return { return {
"nvim-lua/plenary.nvim",
{ {
"NvChad/base46", "NvChad/base46",
@ -18,11 +19,8 @@ return {
{ {
"nvim-tree/nvim-web-devicons", "nvim-tree/nvim-web-devicons",
opts = function() opts = function()
return { override = require "nvchad.icons.devicons" }
end,
config = function(_, opts)
dofile(vim.g.base46_cache .. "devicons") dofile(vim.g.base46_cache .. "devicons")
require("nvim-web-devicons").setup(opts) return { override = require "nvchad.icons.devicons" }
end, end,
}, },
@ -51,9 +49,6 @@ return {
opts = function() opts = function()
return require "nvchad.configs.nvimtree" return require "nvchad.configs.nvimtree"
end, end,
config = function(_, opts)
require("nvim-tree").setup(opts)
end,
}, },
{ {
@ -66,8 +61,6 @@ return {
end, end,
}, },
"nvim-lua/plenary.nvim",
-- formatting! -- formatting!
{ {
"stevearc/conform.nvim", "stevearc/conform.nvim",
@ -76,9 +69,6 @@ return {
lua = { "stylua" }, lua = { "stylua" },
}, },
}, },
config = function(_, opts)
require("conform").setup(opts)
end,
}, },
-- git stuff -- git stuff
@ -88,9 +78,6 @@ return {
opts = function() opts = function()
return require "nvchad.configs.gitsigns" return require "nvchad.configs.gitsigns"
end, end,
config = function(_, opts)
require("gitsigns").setup(opts)
end,
}, },
-- lsp stuff -- lsp stuff
@ -100,9 +87,6 @@ return {
opts = function() opts = function()
return require "nvchad.configs.mason" return require "nvchad.configs.mason"
end, end,
config = function(_, opts)
require("mason").setup(opts)
end,
}, },
{ {
@ -157,9 +141,6 @@ return {
opts = function() opts = function()
return require "nvchad.configs.cmp" return require "nvchad.configs.cmp"
end, end,
config = function(_, opts)
require("cmp").setup(opts)
end,
}, },
{ {