]> git.rmz.io Git - dotfiles.git/commitdiff
nvim: replace mason-lspconfig.mappings.server
authorSamir Benmendil <me@rmz.io>
Mon, 27 Oct 2025 22:20:32 +0000 (22:20 +0000)
committerSamir Benmendil <me@rmz.io>
Mon, 27 Oct 2025 22:20:32 +0000 (22:20 +0000)
It's been deprecated.

nvim/lua/plugins/lsp/init.lua

index 09adfdd0bd95c168e8f5c554470971a9a5150ee5..99fab99a5ce55fb459230f2df627a08eef45a612 100644 (file)
@@ -106,7 +106,7 @@ return {
       -- get all the servers that are available through mason-lspconfig
       local mlsp = require("mason-lspconfig")
       -- TODO: use mason-lspconfig.get_available_servers()?
       -- get all the servers that are available through mason-lspconfig
       local mlsp = require("mason-lspconfig")
       -- TODO: use mason-lspconfig.get_available_servers()?
-      local all_mslp_servers = vim.tbl_keys(require("mason-lspconfig.mappings.server").lspconfig_to_package)
+      local all_mslp_servers = require("mason-lspconfig").get_mappings().lspconfig_to_package
 
       local ensure_installed = {} ---@type string[]
       for server, server_opts in pairs(opts.servers) do
 
       local ensure_installed = {} ---@type string[]
       for server, server_opts in pairs(opts.servers) do