AdamWagner / stackline

Visualize yabai window stacks on macOS. Works with yabai & hammerspoon.
944 stars 47 forks source link

Merge init() configuration table with default configuration #127

Open mizlan opened 9 months ago

mizlan commented 9 months ago

With an init.lua file like the following,

stackline = require "stackline"
stackline:init {
  appearance = {
    offset = {
      x = 10
    }
  }
}

I see many errors in the Hammerspoon console reporting that I've failed to set a number of different fields (the other configuration options). However, in this case I'd expect the unset fields to take on the values that are the default (i.e., if I were to just have init() with no table, the arguments that would be used in place). It seems like that's not the case, although maybe I am misconfiguring something here.