From b7250bde5de58a87f68fc0711b0717f8ee146abd Mon Sep 17 00:00:00 2001 From: kazimazi Date: Sun, 8 Feb 2026 06:46:42 +0100 Subject: [PATCH] lsp: fix deprecation warning in neovim 0.12 --- modules/plugins/languages/clang.nix | 2 +- modules/plugins/lsp/config.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/plugins/languages/clang.nix b/modules/plugins/languages/clang.nix index cfc86131..6948ff50 100644 --- a/modules/plugins/languages/clang.nix +++ b/modules/plugins/languages/clang.nix @@ -97,7 +97,7 @@ local function symbol_info() local bufnr = vim.api.nvim_get_current_buf() local clangd_client = vim.lsp.get_clients({ bufnr = bufnr, name = "clangd" })[1] - if not clangd_client or not clangd_client.supports_method 'textDocument/symbolInfo' then + if not clangd_client or not clangd_client:supports_method 'textDocument/symbolInfo' then return vim.notify('Clangd client not found', vim.log.levels.ERROR) end local win = vim.api.nvim_get_current_win() diff --git a/modules/plugins/lsp/config.nix b/modules/plugins/lsp/config.nix index 791b72b7..a75a5c9e 100644 --- a/modules/plugins/lsp/config.nix +++ b/modules/plugins/lsp/config.nix @@ -48,7 +48,7 @@ in { default_on_attach(client, bufnr) ${optionalString cfg.inlayHints.enable '' - if client and client.supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint) then + if client and client:supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint) then vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled({ bufnr = bufnr }), { bufnr = bufnr }) end ''}