From fe0c019a8a69ca02e3d1c585088a4f5b173a9da8 Mon Sep 17 00:00:00 2001 From: Sergey Vlasov Date: Sat, 19 Aug 2023 01:21:26 +0300 Subject: [PATCH] disable "goto BUILD" for bazel files --- autoload/bazel.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/bazel.vim b/autoload/bazel.vim index c317f29..be92dc5 100644 --- a/autoload/bazel.vim +++ b/autoload/bazel.vim @@ -240,6 +240,8 @@ def S__goto_build() wincmd w S__jump_to_label(token) endif + elseif &ft == 'bzl' + return else S__configure() var path = expand('%:p')->S__rel_path(g:bazel.info.workspace) @@ -342,4 +344,3 @@ nnoremap (bazel-print-rel) S__print_relative_path()< nnoremap (bazel-print-label) S__print_label() nnoremap (bazel-references) S__show_references() nnoremap (bazel-definition) S__goto_definition() -