luk400 / vim-jukit

Jupyter-Notebook inspired Neovim/Vim Plugin
MIT License
587 stars 23 forks source link

wrong autocmd file pattern #112

Closed Konfekt closed 7 months ago

Konfekt commented 7 months ago

The autocmd built in https://github.com/luk400/vim-jukit/blob/73214c9a8abc4b6aa7a6266b5bc2ddbf8b3e3c00/plugin/jukit.vim#L185 is, for example for *.py

BufEnter
    *.*.py    call jukit#highlight_markers(0)
              call jukit#place_markdown_cell_signs(0)

A single *. suffices, that is *.py is enough.

While at it, these autocmds better be put into groups to allow for their deactivation