File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -88,13 +88,13 @@ return {
88
88
)
89
89
vim .keymap .set (
90
90
' n' ,
91
- ' <C-w >av' ,
91
+ ' <Leader >av' ,
92
92
' <c-w>v<cmd>ClangdSwitchSourceHeader<cr>' ,
93
93
{ noremap = true , silent = true , buffer = bufnr , desc = ' switch source (vsplit)' }
94
94
)
95
95
vim .keymap .set (
96
96
' n' ,
97
- ' <C-w >as' ,
97
+ ' <Leader >as' ,
98
98
' <c-w>s<cmd>ClangdSwitchSourceHeader<cr>' ,
99
99
{ noremap = true , silent = true , buffer = bufnr , desc = ' switch source (split)' }
100
100
)
@@ -105,7 +105,15 @@ return {
105
105
{ noremap = true , silent = true , buffer = bufnr , desc = ' toggle inlay hints' }
106
106
)
107
107
108
- require (" clangd_extensions.inlay_hints" ).setup_autocmd ()
108
+ vim .keymap .set (
109
+ ' n' ,
110
+ ' <Leader>al' ,
111
+ ' <cmd>ClangdSetInlayHints<cr>' ,
112
+ { noremap = true , silent = true , buffer = bufnr , desc = ' refresh inlay hints' }
113
+ )
114
+
115
+ -- inlay hints autocmd get confused with :ClangdToggleInlayHints, a workaround is toggle manually
116
+ -- require("clangd_extensions.inlay_hints").setup_autocmd()
109
117
require (" clangd_extensions.inlay_hints" ).set_inlay_hints ()
110
118
111
119
-- use lsp-status only for clangd
You can’t perform that action at this time.
0 commit comments