Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ EasyClangComplete.sublime-workspace
tests/bazel/good_project/bazel-*
*compile_commands.json
tests/bazel/bad_project/bazel-*

package-metadata.json

15 changes: 15 additions & 0 deletions EasyClangComplete.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@
"popup_maximum_width": 1800,
"popup_maximum_height": 800,

// This array determines which sections should appear inside info popups,
// and in what order they should be displayed within the popup.
// By default, all of the possible sections are present.
"popup_sections": [
"Declaration",
"References",
"Documentation",
"Body",
],

// Triggers for auto-completion
"triggers" : [ ".", "->", "::", " ", " ", "(", "[" ],

Expand Down Expand Up @@ -170,6 +180,11 @@
// the symbol under cursor taking them from Sublime Text index.
"show_index_references": true,

// Makes any documentation comments show up as rendered Markdown in the popup.
// By default, this value is set to `false`, which means that any documentation
// comments will be displayed within a literal text block (```).
"show_doc_as_markdown": false,

// When an includes trigger is typed (" or <) a quick panel will appear that
// will guide the user in picking their includes based on the current
// compilation database' include flags.
Expand Down
27 changes: 27 additions & 0 deletions docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,22 @@ Setting that controls the maximum height of the popups generated by the plugin.
"popup_maximum_height": 800,
```

### **`popup_sections`**

This array determines which sections should appear inside info popups,
and in what order they should be displayed within the popup.
By default, all of the possible sections are present.

!!! example "Default value"
```json
"popup_sections": [
"Declaration",
"References",
"Documentation",
"Body",
],
```

### **`triggers`**

Defines all characters that trigger auto-completion. The default value is:
Expand Down Expand Up @@ -459,6 +475,17 @@ symbol under cursor taking them from Sublime Text index.
"show_index_references": true,
```

### **`show_doc_as_markdown`**

Makes any documentation comments show up as rendered Markdown in the popup.
By default, this value is set to `false`, which means that any documentation
comments will be displayed within a literal text block (triple-backquotes).

!!! example "Default value"
```json
"show_doc_as_markdown": false,
```



### **`autocomplete_includes`**
Expand Down
3 changes: 3 additions & 0 deletions plugin/completion/lib_complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ def info(self, tooltip_request, settings):
info_popup = Popup.info(
cursor.referenced, self.cindex, settings)
return tooltip_request, info_popup
if cursor.kind == self.cindex.CursorKind.MACRO_DEFINITION:
info_popup = Popup.info(cursor, self.cindex, settings)
return tooltip_request, info_popup
return empty_info

def update(self, view, settings):
Expand Down
Loading