From 19bf2097a281fda13b9dfaf4d181e2e97626651d Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Mon, 29 Jul 2024 12:53:59 -0400 Subject: Actchually good clangd lsp setup --- lua/plugins/lsp.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lua/plugins/lsp.lua') diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 4a5e6b9..9f6075c 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -183,6 +183,13 @@ return { }, }, }) + lsp.clangd.setup({ + on_attach = function(client) + client.server_capabilities.documentFormattingProvider = false + client.server_capabilities.documentRangeFormattingProvider = false + lspMaps() + end, + }) end, }, { -- cgit v1.2.3