diff --git a/plugin/documents.py b/plugin/documents.py index fef1b4c6b..72ce043f3 100644 --- a/plugin/documents.py +++ b/plugin/documents.py @@ -529,10 +529,8 @@ def on_text_command(self, command_name: str, args: Optional[dict]) -> Optional[T return None def on_post_text_command(self, command_name: str, args: Optional[Dict[str, Any]]) -> None: - format_on_paste = self.view.settings().get('lsp_format_on_paste', None) - format_on_paste_enabled = format_on_paste if isinstance(format_on_paste, bool) \ - else userprefs().lsp_format_on_paste - if command_name == 'paste' and format_on_paste_enabled: + format_on_paste = self.view.settings().get('lsp_format_on_paste', userprefs().lsp_format_on_paste) + if command_name == 'paste' and format_on_paste: self._did_paste = True elif command_name in ("next_field", "prev_field") and args is None: sublime.set_timeout_async(lambda: self.do_signature_help_async(manual=True))