From eb75b09a33b127fbf52f1012784495d0eb57032d Mon Sep 17 00:00:00 2001 From: ray-x Date: Thu, 28 Apr 2022 23:06:44 +1000 Subject: [PATCH] issue #183 clangd missing bufnr --- lua/navigator/lspclient/clients.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/navigator/lspclient/clients.lua b/lua/navigator/lspclient/clients.lua index 3437707..a333bd1 100644 --- a/lua/navigator/lspclient/clients.lua +++ b/lua/navigator/lspclient/clients.lua @@ -184,9 +184,9 @@ local setups = { '--cross-file-rename', }, filetypes = { 'c', 'cpp', 'objc', 'objcpp' }, - on_attach = function(client) + on_attach = function(client, buffnr) client.resolved_capabilities.document_formatting = true - on_attach(client) + on_attach(client, bufnr) end, }, rust_analyzer = {