Configured clangd settings

This commit is contained in:
2025-08-02 17:04:19 +03:00
parent daed0a2277
commit f95f12b203
4 changed files with 11 additions and 7 deletions

View File

@@ -0,0 +1,8 @@
InlayHints:
BlockEnd: false
Designators: true
Enabled: true
ParameterNames: false
DeducedTypes: true
DefaultArguments: true
TypeNameLimit: 24

View File

@@ -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,

View File

@@ -12,9 +12,6 @@ return {
'ClangdMemoryUsage',
},
opts = {
inlay_hints = {
inline = false,
},
ast = {
role_icons = {
type = '',

View File

@@ -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',