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