andreyorst / smarttab.kak

Automatic handling different styles of indentation and alignment.
MIT License
63 stars 4 forks source link

Settings are per window should be per buffer #5

Closed ficoos closed 5 years ago

andreyorst commented 5 years ago

I made it per window because filetype is usually set up with winsetoption hooks

ficoos commented 5 years ago

This means the function fails when opening a file before the first window is open. Also trying to align it with editorconfig settings becomes asymmetrical as it uses buffers as scope. Also, IMHO it's an odd setting to set differently for different windows. Why would you want this setting to change when moving to a different client?

andreyorst commented 5 years ago

Can you test buffer branch please?

ficoos commented 5 years ago

Works for me.