Skip to content

Commit

Permalink
Adjust the DottedDict update() call after change in LSP
Browse files Browse the repository at this point in the history
With sublimelsp/LSP#1865 in place, the updated
format is more correct (even though in this particular case either works
because `vetur.format.options` doesn't contain more options besides
those two).
  • Loading branch information
rchl committed Oct 3, 2021
1 parent 62e62df commit 4749c96
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ def on_settings_changed(self, settings: DottedDict) -> None:
if view:
view_settings = view.settings()
settings.update({
'vetur.format.options': {
'tabSize': view_settings.get('tab_size', 4),
'useTabs': not view_settings.get('translate_tabs_to_spaces', False)
}
'vetur.format.options.tabSize': view_settings.get('tab_size', 4),
'vetur.format.options.useTabs': not view_settings.get('translate_tabs_to_spaces', False),
})

0 comments on commit 4749c96

Please sign in to comment.