Skip to content

Commit

Permalink
Simplify line
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann committed Dec 6, 2024
1 parent d0f7cd4 commit 31b9dba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin/inlay_hint.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ class LspToggleInlayHintsCommand(LspWindowCommand):
def __init__(self, window: sublime.Window) -> None:
super().__init__(window)
settings = userprefs()
default = settings.show_inlay_hints if settings is not None else False
window.settings().set('lsp_show_inlay_hints', default)
window.settings().set('lsp_show_inlay_hints', settings.show_inlay_hints if settings is not None else False)

def run(self, enable: bool | None = None) -> None:
window_settings = self.window.settings()
Expand Down

0 comments on commit 31b9dba

Please sign in to comment.