Skip to content

Commit

Permalink
Update README.md go include hover details (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ce11an authored Jul 13, 2024
1 parent a45ca72 commit 1b65b4d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,10 @@ Provides code completion support to streamline your development workflow - ongoi

![Screenshot 2024-07-02 at 22 32 16](https://github.com/Ce11an/surrealql-lsp/assets/60790416/6e39965f-4e8c-41ff-bc16-125d43b4db65)

### Hover
Hover over SurrealQL keyworks for documentation - ongoing!

![Screenshot 2024-07-13 at 20 46 24](https://github.com/user-attachments/assets/fa99a451-0c48-4243-8c02-e455322da938)

## Contributions
We welcome contributions! If you find this project interesting and want to help, please consider contributing.
13 changes: 11 additions & 2 deletions crates/server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,19 @@ pub fn get_keyword_documentation_at_pos<'a>(
tree_sitter_surrealql::language(),
r#"
[
(keyword_select)
(keyword_where)
(keyword_explain)
(keyword_from)
(keyword_group_by)
(keyword_limit)
(keyword_only)
(keyword_order_by)
(keyword_parallel)
(keyword_select)
(keyword_split)
(keyword_timeout)
(keyword_value)
(keyword_where)
(keyword_with)
] @keywords
"#,
)
Expand Down

0 comments on commit 1b65b4d

Please sign in to comment.