From 9716759212a1babae02fb66e52b16e13252c1e60 Mon Sep 17 00:00:00 2001 From: Daniil Tsivinsky Date: Fri, 25 Jul 2025 16:21:02 +0300 Subject: [PATCH] neovim: add clangd lsp --- neovim/.config/nvim/after/plugin/lsp/other.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/neovim/.config/nvim/after/plugin/lsp/other.lua b/neovim/.config/nvim/after/plugin/lsp/other.lua index f917346..18ad56d 100644 --- a/neovim/.config/nvim/after/plugin/lsp/other.lua +++ b/neovim/.config/nvim/after/plugin/lsp/other.lua @@ -68,3 +68,11 @@ vim.lsp.config.docker_ls = { root_markers = { "Dockerfile", ".git", vim.uv.cwd() }, } vim.lsp.enable("docker_ls") + +-- c +vim.lsp.config.clangd = { + cmd = { "clangd", "--clang-tidy" }, + filetypes = { "c" }, + root_markers = { "Makefile", "main.c" }, +} +vim.lsp.enable("clangd")