From d72294754b841402cecba8a19de961d3e9372d99 Mon Sep 17 00:00:00 2001 From: lijie Date: Sun, 15 Dec 2024 23:03:36 +0800 Subject: [PATCH] set f the leap.nvim key --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index cecbd8f..5a14065 100644 --- a/init.lua +++ b/init.lua @@ -296,6 +296,10 @@ require('lazy').setup({ vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled { bufnr = event.buf }) end, '[T]oggle Inlay [H]ints') end + --use clangd builtin command to switch Header/Source + if client and client.supports_method(vim.lsp.protocol.textDocument_switchHeaderSource) then + map('', 'ClangdSwitchSourceHeader', 'Swithc Source/Header') + end end, })