nvim-orgmode / orgmode

Orgmode clone written in Lua for Neovim 0.9+.
https://nvim-orgmode.github.io/
MIT License
3.03k stars 134 forks source link

Error in filetype when starting nvim #193

Closed wyattjsmith1 closed 2 years ago

wyattjsmith1 commented 2 years ago

Describe the bug

When pulling the latest master, I get this error when starting. Everything worked before this. I believe this is caused by 022b519a20d802c445ed80cae64813085425cfba.

Steps to reproduce

Just start nvim, I get:

Error detected while processing /Users/wys/.local/share/nvim/site/pack/packer/start/orgmode/ftdetect/filetype.lua:                                                                                                                         
E5113: Error while calling lua chunk: ...vim/site/pack/packer/start/orgmode/ftdetect/filetype.lua:1: attempt to index field 'filetype' (a nil value)                                                                                       
stack traceback:                                                                                                                                                                                                                           
        ...vim/site/pack/packer/start/orgmode/ftdetect/filetype.lua:1: in main chunk  

Expected behavior

It should work without errors.

Emacs functionality

NA

Minimal init.lua

The minimal causes this issue, though you need to fix the bug on line 29 for it to work.

Screenshots and recordings

No response

OS / Distro

Macos

Neovim version/commit

0.6.0

Additional context

No response

levouh commented 2 years ago

You can use the latest Neovim (basically have to build from HEAD as the nightly builds haven't cycled yet) to circumvent this, however #194 should fix it.

Obviously you could also pin this plugin at commit = "159db459f4495802a98401952d9ff441919c0a4b" assuming you are using Packer. Other plugin managers provide this functionality too, just with different syntax.

kristijanhusak commented 2 years ago

Should be fixed now. Pull latest master.