gustavo-hms / luar

Script Kakoune using Lua
GNU Lesser General Public License v3.0
47 stars 3 forks source link

Fix indent #1

Closed alexherbo2 closed 4 years ago

alexherbo2 commented 4 years ago

@gustavo-hms It has been closed without the indent fixes.

gustavo-hms commented 4 years ago

Sorry! I didn't mean to close the pull request. My mistake.

First of all, thanks to contribute!

I didn't know docstrings could have an initial indent that would be trimmed off. However, built-in commands have an indent of 4 spaces instead of 2 (check define-command for example). Since I would edit luar.kak anyway to fix issue #2, I've also edited it to take your suggestion into account.

Regarding the lua file, I use tabs for indent. I don't know exactly what messed things up (maybe hooks in the lua.kak default file). If you don't mind, you could change the indentation of the luar.lua file in you pull request to tabs instead of 2 spaces.

alexherbo2 commented 4 years ago

I updated to use 4 spaces in luar.kak and tabs in luar.lua.