vim-ft-bzl icon indicating copy to clipboard operation
vim-ft-bzl copied to clipboard

Broken indent everywhere except the first open buffer

Open liskin opened this issue 1 year ago • 0 comments

indent/python.vim is only executed once per vim instance: https://github.com/bazelbuild/vim-ft-bzl/blob/941fb142f604c254029c2a0852ea7578f08de91a/indent/bzl.vim#L23-L25 but it should really be executed once per buffer, because it sets autoindent and GetPythonIndent (actually python#GetIndent these days) relies on autoindent being set.

In other words, bzl indenting only works in the first bzl buffer, provided no python buffer was opened before. If it was, it doesn't even work there.

liskin avatar Mar 29 '23 06:03 liskin