diff options
| author | Kevin Greene <kgreenek@gmail.com> | 2022-09-08 17:40:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-09 08:40:55 +0800 |
| commit | cf7ceb7016b133c570e496a8b261513a060996a9 (patch) | |
| tree | 494351f8a71b80a26cd91da7a1434fb3321dddc0 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-cf7ceb7016b133c570e496a8b261513a060996a9.tar nvim-lspconfig-cf7ceb7016b133c570e496a8b261513a060996a9.tar.gz nvim-lspconfig-cf7ceb7016b133c570e496a8b261513a060996a9.tar.bz2 nvim-lspconfig-cf7ceb7016b133c570e496a8b261513a060996a9.tar.lz nvim-lspconfig-cf7ceb7016b133c570e496a8b261513a060996a9.tar.xz nvim-lspconfig-cf7ceb7016b133c570e496a8b261513a060996a9.tar.zst nvim-lspconfig-cf7ceb7016b133c570e496a8b261513a060996a9.zip | |
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
```
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/clangd.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
