summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-07-06 00:46:27 +0100
committerAdam <56338480+adastx@users.noreply.github.com>2022-07-06 00:46:27 +0100
commitf24c706f2fd679d1e62e38280bda9eb842dd082d (patch)
treea04cb93957fd75201222b903a259bb99e730c79a /.config/nvim
parent68b862a8aeab15e662bbba10084a541870b15648 (diff)
nvim: clangd lsp
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lua/setup/lspconfig.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/nvim/lua/setup/lspconfig.lua b/.config/nvim/lua/setup/lspconfig.lua
index ad101a2..7da3482 100644
--- a/.config/nvim/lua/setup/lspconfig.lua
+++ b/.config/nvim/lua/setup/lspconfig.lua
@@ -24,6 +24,10 @@ lspconfig.rust_analyzer.setup {
on_attach = on_attach,
}
+lspconfig.clangd.setup {
+ on_attach = on_attach,
+}
+
local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
for type, icon in pairs(signs) do
local hl = "DiagnosticSign" .. type