Moved leader and local leader definitions to top of the file, ready for plugins.