Skip to content

Commit

Permalink
Add back stippled option for document highlights (#1748)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann authored Jun 13, 2021
1 parent 61f69f0 commit f5952e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LSP.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

// Highlighting style of "highlights": accentuating nearby text entities that
// are related to the one under your cursor.
// Valid values are "fill", "underline", or "".
// Valid values are "fill", "underline", "stippled", or "".
// When set to the empty string (""), no document highlighting is requested.
"document_highlight_style": "underline",

Expand Down
2 changes: 2 additions & 0 deletions plugin/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ def r(name: str, default: Union[bool, int, str, list, dict]) -> None:
def document_highlight_style_region_flags(self) -> Tuple[int, int]:
if self.document_highlight_style == "fill":
return sublime.DRAW_NO_OUTLINE, sublime.DRAW_NO_OUTLINE
elif self.document_highlight_style == "stippled":
return sublime.DRAW_NO_FILL, sublime.DRAW_NO_FILL | sublime.DRAW_NO_OUTLINE | sublime.DRAW_STIPPLED_UNDERLINE # noqa: E501
else:
return sublime.DRAW_NO_FILL, sublime.DRAW_NO_FILL | sublime.DRAW_NO_OUTLINE | sublime.DRAW_SOLID_UNDERLINE

Expand Down
1 change: 1 addition & 0 deletions sublime-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@
"enum": [
"fill",
"underline",
"stippled",
""
],
"default": "underline",
Expand Down

0 comments on commit f5952e6

Please sign in to comment.