fix dependenices configuration for lsp to prioritize nvim-lspconfig

This commit is contained in:
2025-07-17 17:40:58 +05:00
parent d4166aa883
commit 0fd17f71a1

View File

@ -1,15 +1,17 @@
return {
{
"williamboman/mason.nvim",
event = "VeryLazy",
config = true
}, -- simple to use language server installer
},
{
"williamboman/mason-lspconfig.nvim",
event = "VeryLazy",
dependencies = {
},
{
"neovim/nvim-lspconfig",
event = "BufReadPre BufNewFile",
dependencies = {
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
"nvimtools/none-ls.nvim",
},
config = function()
@ -20,7 +22,6 @@ return {
vim.cmd([[ command! Format execute 'lua vim.lsp.buf.format{async=true}' ]])
end,
},
{ "neovim/nvim-lspconfig", event = "VeryLazy" }, -- enable LSP
{
"lukas-reineke/lsp-format.nvim",
event = "VeryLazy",