forked from Julian/lean.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crashing when loading lean config
This fixes a crash that occurs when lean is configured outside of a `config` function from packer. Technically---instead of communicating changes to the filetype configuration through a shared configuration global, the relevant configuration (default filetype) is shared through one single global. Furthermore, if this global is written by the user before the plugin is loaded, then this global will not be managed by the plugin. This allows a user to configure default filetype even if the plugin is not loaded! Fixes Julian#275
- Loading branch information
Showing
3 changed files
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
globals = { | ||
"_clean_buffer_count", | ||
"vim", | ||
"lean_nvim_ft_options", | ||
"lean_nvim_default_filetype", | ||
assert = {fields = {"message"}}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters