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

How to trigger the indent? #12

Closed
kuchaguangjie opened this issue Mar 22, 2018 · 1 comment
Closed

How to trigger the indent? #12

kuchaguangjie opened this issue Mar 22, 2018 · 1 comment

Comments

@kuchaguangjie
Copy link

I have installed the plugin to my vim via vim-pathogen, but when gg=G, the indention is still odd,

Screenshot:
a

So, how to indent it correctly ?

And, is it possible for the plugin to support another extension in addition to .lua suffix, e.g .luae ?

@idbrii
Copy link
Contributor

idbrii commented Jan 28, 2019

To debug, first do:

 :verbose set indentexpr?

to see if you're actually using this plugin. You can use :scriptnames to help debug if you're not. (See vim-scriptease for an easier to use :Scriptnames.)

And, is it possible for the plugin to support another extension in addition to .lua suffix, e.g .luae ?

If you use .luae files for lua, you can tell vim about it by creating a ~/.vim/ftdetect/lua.vim containing:

au BufRead,BufNewFile *.luae setfiletype lua

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

No branches or pull requests

2 participants