Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Markdown and Elixir extensions #64

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Conversation

georgeguimaraes
Copy link
Contributor

Related to #63,

I had to extend extensions to use lua require('otter').activate({'markdown'}). The lack of a markdown extension made the command blow up.

And, since I also use Elixir inside Markdown, I added "ex" to the mix.

wdyt?

@jmbuhr
Copy link
Owner

jmbuhr commented Oct 24, 2023

Perfect, thanks!
Btw. I still think it's strange to have this mapping, do you happen to know if this already exits somewhere? Going the other way around (extension to filetype) is already a thing, but I never found this mapping.

@jmbuhr jmbuhr merged commit ecb2f21 into jmbuhr:main Oct 24, 2023
@georgeguimaraes
Copy link
Contributor Author

Without the markdown mapping, I get this whenever I try to activate({'markdown'}):

Error detected while processing BufEnter Autocommands for "*.ex":
Error executing lua callback: ...e/.local/share/nvim/lazy/otter.nvim/lua/otter/keeper.lua:223: attempt to concatenate a nil value
stack traceback:
	...e/.local/share/nvim/lazy/otter.nvim/lua/otter/keeper.lua:223: in function 'activate'
	/Users/george/.config/nvim/lua/config/autocmds.lua:11: in function </Users/george/.config/nvim/lua/config/autocmds.lua:10>
Error detected while processing BufWinEnter Autocommands for "*.ex":
Error executing lua callback: ...e/.local/share/nvim/lazy/otter.nvim/lua/otter/keeper.lua:223: attempt to concatenate a nil value
stack traceback:
	...e/.local/share/nvim/lazy/otter.nvim/lua/otter/keeper.lua:223: in function 'activate'
	/Users/george/.config/nvim/lua/config/autocmds.lua:11: in function </Users/george/.config/nvim/lua/config/autocmds.lua:10>

@georgeguimaraes georgeguimaraes deleted the patch-1 branch October 24, 2023 18:02
jmbuhr added a commit that referenced this pull request Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants