]> git.madduck.net Git - etc/vim.git/blobdiff - .vim/bundle/ale/doc/ale-proto.txt

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge commit '76265755a1add77121c8f9dabb3e9bb70fe9a972' as '.vim/bundle/ale'
[etc/vim.git] / .vim / bundle / ale / doc / ale-proto.txt
diff --git a/.vim/bundle/ale/doc/ale-proto.txt b/.vim/bundle/ale/doc/ale-proto.txt
new file mode 100644 (file)
index 0000000..1f427f8
--- /dev/null
@@ -0,0 +1,122 @@
+===============================================================================
+ALE Proto Integration                                       *ale-proto-options*
+
+
+===============================================================================
+Integration Information
+
+To enable `.proto` file linting, update |g:ale_linters| as appropriate:
+>
+  " Enable linter for .proto files
+  let g:ale_linters = {'proto': ['buf-lint', 'protoc-gen-lint', 'protolint']}
+<
+To enable `.proto` file fixing, update |g:ale_fixers| as appropriate:
+>
+  " Enable linter for .proto files
+  let b:ale_fixers = {'proto': ['buf-format', 'protolint']}
+<
+
+===============================================================================
+buf-format                                               *ale-proto-buf-format*
+
+  The formatter uses `buf`, a fully-featured Protobuf compiler that doesn't depend
+  on `protoc`. Make sure the `buf` binary is available in the system path, or
+  set ale_proto_buf_format_executable.
+
+                                      *ale-options.proto_buf_format_executable*
+                                            *g:ale_proto_buf_format_executable*
+proto_buf_format_executable
+g:ale_proto_buf_format_executable
+  Type: |String|
+  Default: `'buf'`
+
+  This variable can be changed to modify the executable used for buf.
+
+
+===============================================================================
+buf-lint                                                   *ale-proto-buf-lint*
+
+  The linter uses `buf`, a fully-featured Protobuf compiler that doesn't depend
+  on `protoc`. Make sure the `buf` binary is available in the system path, or
+  set ale_proto_buf_lint_executable.
+
+                                        *ale-options.proto_buf_lint_executable*
+                                              *g:ale_proto_buf_lint_executable*
+proto_buf_lint_executable
+g:ale_proto_buf_lint_executable
+  Type: |String|
+  Default: `'buf'`
+
+  This variable can be changed to modify the executable used for buf.
+
+                                            *ale-options.proto_buf_lint_config*
+                                                  *g:ale_proto_buf_lint_config*
+proto_buf_lint_config
+g:ale_proto_buf_lint_config
+  Type: |String|
+  Default: `''`
+
+  A path to a buf configuration file.
+
+  The path to the configuration file can be an absolute path or a relative
+  path. ALE will search for the relative path in parent directories.
+
+
+===============================================================================
+clang-format                                            *ale-proto-clangformat*
+
+See |ale-c-clangformat| for information about the available options.
+Note that the C options are also used for Proto.
+
+
+===============================================================================
+protoc-gen-lint                                     *ale-proto-protoc-gen-lint*
+
+  The linter is a plugin for the `protoc` binary. As long as the binary resides
+  in the system path, `protoc` will find it.
+
+                                    *ale-options.proto_protoc_gen_lint_options*
+                                          *g:ale_proto_protoc_gen_lint_options*
+proto_protoc_gen_lint_options
+g:ale_proto_protoc_gen_lint_options
+  Type: |String|
+  Default: `''`
+
+  This variable can be changed to modify flags given to protoc. Note that the
+  directory of the linted file is always passed as an include path with '-I'
+  before any user-supplied options.
+
+
+===============================================================================
+protolint                                                 *ale-proto-protolint*
+
+  The linter is a pluggable tool that doesn't depend on the `protoc` binary.
+  This supports both linting and fixing.
+  Make sure the binary is available in the system path, or set
+  ale_proto_protolint_executable.
+  Note that the binary with v0.22.0 or above is supported.
+
+                                       *ale-options.proto_protolint_executable*
+                                             *g:ale_proto_protolint_executable*
+proto_protolint_executable
+g:ale_proto_protolint_executable
+  Type: |String|
+  Default: `'protolint'`
+
+  This variable can be changed to modify the executable used for protolint.
+
+                                           *ale-options.proto_protolint_config*
+                                                 *g:ale_proto_protolint_config*
+proto_protolint_config
+g:ale_proto_protolint_config
+  Type: |String|
+  Default: `''`
+
+  A path to a protolint configuration file.
+
+  The path to the configuration file can be an absolute path or a relative
+  path. ALE will search for the relative path in parent directories.
+
+
+===============================================================================
+  vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl: