Configured clangd settings
This commit is contained in:
8
.config/clangd/config.yaml
Normal file
8
.config/clangd/config.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
InlayHints:
|
||||
BlockEnd: false
|
||||
Designators: true
|
||||
Enabled: true
|
||||
ParameterNames: false
|
||||
DeducedTypes: true
|
||||
DefaultArguments: true
|
||||
TypeNameLimit: 24
|
||||
@@ -78,7 +78,6 @@ return {
|
||||
'.git',
|
||||
},
|
||||
init_options = {
|
||||
usePlaceholders = true,
|
||||
completeUnimported = true,
|
||||
clangdFileStatus = true,
|
||||
},
|
||||
@@ -99,7 +98,7 @@ return {
|
||||
symbol_info()
|
||||
end, { desc = 'Show symbol info' })
|
||||
|
||||
vim.keymap.set('n', '<leader>H', '<cmd>ClangdSwitchSourceHeader<cr>', { desc = '[H]eader and Source Switcher' })
|
||||
vim.keymap.set('n', '<leader>h', '<cmd>ClangdSwitchSourceHeader<cr>', { desc = '[H]eader and Source Switcher' })
|
||||
vim.keymap.set('n', 'K', '<cmd>lua require("pretty_hover").hover()<cr>', { desc = 'Documentation Hover' })
|
||||
-- TODO: do I need pretty_hover? maybe that's what causes issues?
|
||||
end,
|
||||
|
||||
@@ -12,9 +12,6 @@ return {
|
||||
'ClangdMemoryUsage',
|
||||
},
|
||||
opts = {
|
||||
inlay_hints = {
|
||||
inline = false,
|
||||
},
|
||||
ast = {
|
||||
role_icons = {
|
||||
type = '',
|
||||
|
||||
@@ -357,7 +357,7 @@ return {
|
||||
desc = '[F]ind [H]elp',
|
||||
},
|
||||
{
|
||||
'<leader>hi',
|
||||
'<leader>H',
|
||||
function()
|
||||
Snacks.picker.highlights({
|
||||
layout = 'telescope',
|
||||
@@ -365,7 +365,7 @@ return {
|
||||
follow = true,
|
||||
})
|
||||
end,
|
||||
desc = '[Hi]light Groups',
|
||||
desc = '[H]light Groups',
|
||||
},
|
||||
{
|
||||
'<leader>si',
|
||||
|
||||
Reference in New Issue
Block a user