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() -