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

Multi-line array variable in bash with filetype sh does not indent correctly #13

Closed
3N4N opened this issue Mar 19, 2019 · 2 comments
Closed

Comments

@3N4N
Copy link

3N4N commented Mar 19, 2019

I have the following bash array after automatic indentation, both on pressing carriage return when was editing in :h Insert mode and doing =ip on the block in :h Normal-mode

DOTFILES=(
".bashrc"
".bash_profile"
".gitconfig"
".profile"
)

Trying with nvim -u NORC yielded the same result, so I'm guessing it's the default /usr/share/nvim/runtime/indent/sh.vim indent file in action. Output of :set ft? is filetype=sh.

I would like to have the aforementioned array with the following indentation:

DOTFILES=(
	".bashrc"
	".bash_profile"
	".gitconfig"
	".profile"
)

How do I do that?

@chrisbra
Copy link
Owner

should work now.

@3N4N
Copy link
Author

3N4N commented Mar 19, 2019

@chrisbra, Thanks.

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