mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-24 04:15:18 +00:00
lsp: fix deprecation warning in neovim 0.12
This commit is contained in:
parent
bd265fee7e
commit
b7250bde5d
2 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue