Add efm-language server formatting for protobuf
This commit is contained in:
parent
06aa19b4f4
commit
4540b8a334
2 changed files with 24 additions and 0 deletions
14
.config/efm-langserver/config.yaml
Normal file
14
.config/efm-langserver/config.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
version: 2
|
||||||
|
root-markers:
|
||||||
|
- .git/
|
||||||
|
|
||||||
|
tools:
|
||||||
|
clang-format: &clang-format
|
||||||
|
format-command: 'clang-format -style="{BasedOnStyle: Google, IndentWidth: 2, AlignConsecutiveDeclarations: true, AlignConsecutiveAssignments: true, ColumnLimit: 0}"'
|
||||||
|
format-stdin: true
|
||||||
|
|
||||||
|
languages:
|
||||||
|
proto:
|
||||||
|
- <<: *clang-format
|
||||||
|
|
||||||
|
|
|
@ -236,6 +236,16 @@ return require('packer').startup(function()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
use {
|
||||||
|
'mattn/efm-langserver',
|
||||||
|
config = function()
|
||||||
|
require "lspconfig".efm.setup {
|
||||||
|
init_options = {documentFormatting = true},
|
||||||
|
}
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"ray-x/go.nvim",
|
"ray-x/go.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
|
|
Loading…
Reference in a new issue