Skip to content

Commit

Permalink
disable "goto BUILD" for bazel files
Browse files Browse the repository at this point in the history
  • Loading branch information
noscript committed Aug 18, 2023
1 parent 984dd2e commit fe0c019
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/bazel.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -342,4 +344,3 @@ nnoremap <unique> <Plug>(bazel-print-rel) <ScriptCmd>S__print_relative_path()<
nnoremap <unique> <Plug>(bazel-print-label) <ScriptCmd>S__print_label()<CR>
nnoremap <unique> <Plug>(bazel-references) <ScriptCmd>S__show_references()<CR>
nnoremap <unique> <Plug>(bazel-definition) <ScriptCmd>S__goto_definition()<CR>

0 comments on commit fe0c019

Please sign in to comment.