I'd install it first and add its setup line ( require'lspconfig'.clangd.setup{} ) in /lua/nvim-lspconfig/lua.lua file . I will organise the config slowly and soon add a list of important mappings used in my config , on this readme so it might get easy for some :)
# Default Mappings to make stuffs easier!
<kbd> space </kbd> is the leader key
- <kbd> Ctrl </kbd><kbd> b </kbd> Open terminal vertically over right
- <kbd> Ctrl </kbd><kbd> x </kbd> Open terminal horizontally below the current window
- <kbd> Ctrl </kbd><kbd> b </kbd> toggle neovim tree
- <kbd> Ctrl </kbd><kbd> a </kbd> copies everything in the current file
- select any text + <kbd> y </kbd> copies the selected text
- leader + <kbd> f </kbd><kbd> b </kbd> open all buffers , with telescope
- leader + <kbd> f </kbd><kbd> p </kbd> search and preview images with telescope
- leader + <kbd> f </kbd><kbd> f </kbd> find files in the current DIR , with telescope
- leader + <kbd> f </kbd><kbd> o </kbd> open recently edited files , with telescope
- leader + <kbd> f </kbd><kbd> f </kbd> find files in the current DIR , with telescope
- leader + <kbd> f </kbd><kbd> h </kbd> opens up a manpage like thing but for all vim related things , with telescope
- leader + <kbd> f </kbd><kbd> m </kbd> formats or beautifies the code in current window via neoformat
(currently only html ,css , js can be formatted . To be able to use this keybind you need to install the formatter locally for your language , in my case prettier was required only so I installed it. check this <a> https://github.com/sbdchd/neoformat</a>)