aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/clangd.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-04-23 06:50:22 -0700
committerGitHub <noreply@github.com>2025-04-23 06:50:22 -0700
commitaf34737b3ad94e5fcf03628db7df14cff481bf56 (patch)
tree372d18e761fd770fe282922d255ff98a20d7e88e /lsp/clangd.lua
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-af34737b3ad94e5fcf03628db7df14cff481bf56.tar
nvim-lspconfig-af34737b3ad94e5fcf03628db7df14cff481bf56.tar.gz
nvim-lspconfig-af34737b3ad94e5fcf03628db7df14cff481bf56.tar.bz2
nvim-lspconfig-af34737b3ad94e5fcf03628db7df14cff481bf56.tar.lz
nvim-lspconfig-af34737b3ad94e5fcf03628db7df14cff481bf56.tar.xz
nvim-lspconfig-af34737b3ad94e5fcf03628db7df14cff481bf56.tar.zst
nvim-lspconfig-af34737b3ad94e5fcf03628db7df14cff481bf56.zip
refactor: deprecate util.validate_bufnr()
Diffstat (limited to 'lsp/clangd.lua')
-rw-r--r--lsp/clangd.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/lsp/clangd.lua b/lsp/clangd.lua
index c6037c26..062b4777 100644
--- a/lsp/clangd.lua
+++ b/lsp/clangd.lua
@@ -11,12 +11,9 @@
--- - clangd relies on a [JSON compilation database](https://clang.llvm.org/docs/JSONCompilationDatabase.html)
--- specified as compile_commands.json, see https://clangd.llvm.org/installation#compile_commandsjson
-local util = require 'lspconfig.util'
-
-- https://clangd.llvm.org/extensions.html#switch-between-sourceheader
local function switch_source_header(bufnr)
local method_name = 'textDocument/switchSourceHeader'
- bufnr = util.validate_bufnr(bufnr)
local client = vim.lsp.get_clients({ bufnr = bufnr, name = 'clangd' })[1]
if not client then
return vim.notify(('method %s is not supported by any servers active on the current buffer'):format(method_name))