aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/ccls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lsp/ccls.lua')
-rw-r--r--lsp/ccls.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lsp/ccls.lua b/lsp/ccls.lua
index d449fc2d..0b72d6d6 100644
--- a/lsp/ccls.lua
+++ b/lsp/ccls.lua
@@ -44,9 +44,9 @@ return {
offset_encoding = 'utf-32',
-- ccls does not support sending a null root directory
workspace_required = true,
- on_attach = function(client)
- vim.api.nvim_buf_create_user_command(0, 'LspCclsSwitchSourceHeader', function()
- switch_source_header(client, 0)
+ on_attach = function(client, bufnr)
+ vim.api.nvim_buf_create_user_command(bufnr, 'LspCclsSwitchSourceHeader', function()
+ switch_source_header(client, bufnr)
end, { desc = 'Switch between source/header' })
end,
}