From 8a760db73e4ec83a78a2953f9160477b3a4d2d6f Mon Sep 17 00:00:00 2001 From: Felipe Contreras Salinas Date: Mon, 23 Oct 2023 14:32:58 -0300 Subject: [PATCH] lsp: don't use clang for proto files --- init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 748922b..37d25ff 100644 --- a/init.lua +++ b/init.lua @@ -157,6 +157,7 @@ require("nvim-treesitter.configs").setup({ "passwd", "perl", "php", + "proto", "python", "regex", "ron", @@ -315,7 +316,9 @@ vim.api.nvim_create_autocmd({ "FileType" }, { -- Use a loop to conveniently call 'setup' on multiple servers and -- map buffer local keybindings when the language server attaches local servers = { - clangd = {}, + clangd = { + filetypes = { "c", "cpp" } + }, dotls = {}, eslint = {}, gopls = {},