From cf7ceb7016b133c570e496a8b261513a060996a9 Mon Sep 17 00:00:00 2001 From: Kevin Greene Date: Thu, 8 Sep 2022 17:40:55 -0700 Subject: feat(clangd): add proto filetype support (#2125) clangd supports formatting and some basic linting for protobuf files. Here is an example .clang-format file with a section for protobuf files: ``` --- Language: Proto BasedOnStyle: Google ColumnLimit: 100 AllowShortFunctionsOnASingleLine: Empty ``` --- lua/lspconfig/server_configurations/clangd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/clangd.lua b/lua/lspconfig/server_configurations/clangd.lua index bd243418..732f556c 100644 --- a/lua/lspconfig/server_configurations/clangd.lua +++ b/lua/lspconfig/server_configurations/clangd.lua @@ -42,7 +42,7 @@ local default_capabilities = { return { default_config = { cmd = { 'clangd' }, - filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' }, + filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda', 'proto' }, root_dir = function(fname) return util.root_pattern(unpack(root_files))(fname) or util.find_git_ancestor(fname) end, -- cgit v1.2.3-70-g09d2