fix(clangd): file detection improvements (#6436)

## Description

As discussed in
23b9cdeb34 (r165937336),
it'd be better to remove clang configuration files from influencing root
dir detection. I've also added meson and ninja files to the extra's
recommendation detection

## Related Issue(s)

## Screenshots

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
This commit is contained in:
Amaan Qureshi 2025-09-17 05:19:29 -04:00 committed by GitHub
parent ab657e9589
commit aab503fda6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,8 @@ return {
"compile_commands.json",
"compile_flags.txt",
"configure.ac", -- AutoTools
"meson.build",
"build.ninja",
},
})
end,
@ -61,9 +63,6 @@ return {
{ "<leader>ch", "<cmd>ClangdSwitchSourceHeader<cr>", desc = "Switch Source/Header (C/C++)" },
},
root_markers = {
".clangd",
".clang-tidy",
".clang-format",
"compile_commands.json",
"compile_flags.txt",
"configure.ac", -- AutoTools