kaarmu / typst.vim

Vim plugin for Typst
MIT License
282 stars 24 forks source link

packer.nvim does not load typst.vim on Neovim with `ft = { 'typ' }` #21

Closed brkydnc closed 1 year ago

brkydnc commented 1 year ago

Installing the plugin via the snippet below succeeds, but when you edit a .typ file, packer does not load the plugin.

require('packer').startup(function(use)
    use {'kaarmu/typst.vim', ft = {'typ'}}
end)

However, removing ft = {'typ'} does make it work, packer loads the plugin.

I'm on macOS Ventura 13.2.1, and my Neovim version is v0.9.0.

kaarmu commented 1 year ago

When you open a .typ file and then run set ft? does it detect typst or sql?

brkydnc commented 1 year ago

It detects typst, both when loaded, and not loaded.

brkydnc commented 1 year ago

By the way, the behavior mentioned in the issue is the same on Manjaro.

kaarmu commented 1 year ago

Oh, yes you should do ft = {'typst'}

kaarmu commented 1 year ago

I updated the README.

brkydnc commented 1 year ago

That worked, thanks.