From 5b3d999a863872fb34d8ecebee00a156c47e0e25 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Sun, 17 Nov 2024 15:19:54 +0100 Subject: [PATCH] Nvim: Add clangd --- home/features/coding/nvim/default.nix | 1 + home/features/coding/nvim/plugin/lsp.lua | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/home/features/coding/nvim/default.nix b/home/features/coding/nvim/default.nix index 40840cb..afeb677 100644 --- a/home/features/coding/nvim/default.nix +++ b/home/features/coding/nvim/default.nix @@ -11,6 +11,7 @@ # LSP lua-language-server pkgs.nodePackages.typescript-language-server + clang-tools # Formatters stylua # lua diff --git a/home/features/coding/nvim/plugin/lsp.lua b/home/features/coding/nvim/plugin/lsp.lua index 0666611..fdcbe72 100644 --- a/home/features/coding/nvim/plugin/lsp.lua +++ b/home/features/coding/nvim/plugin/lsp.lua @@ -65,3 +65,11 @@ require("lspconfig").eslint.setup({ }) end, }) + +require("lspconfig").clangd.setup({ + on_attach = function(client, bufnr) + client.server_capabilities.signatureHelpProvider = false + on_attach(client, bufnr) + end, + capabilities = capabilities, +})