Skip to content

Commit

Permalink
issues: wl-paste in term will lost focus
Browse files Browse the repository at this point in the history
  • Loading branch information
erasin committed Jul 10, 2024
1 parent 509c89f commit 207d839
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hx-lsp"
version = "0.1.1"
version = "0.1.2"
authors = ["erasin <[email protected]>"]
edition = "2021"
description = "One LSP server support snippets and actions for helix editor."
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Support like `$UUID` 和 `${UUID}`。
- [x] `TM_DIRECTORY`
- [x] `TM_FILEPATH`
- [x] `RELATIVE_FILEPATH`
- [x] `CLIPBOARD`
- [ ] `CLIPBOARD`
- [x] `WORKSPACE_NAME`
- [x] `WORKSPACE_FOLDER`

Expand Down
2 changes: 1 addition & 1 deletion README.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ snippet 格式:
- [x] `TM_DIRECTORY`
- [x] `TM_FILEPATH`
- [x] `RELATIVE_FILEPATH`
- [x] `CLIPBOARD`
- [ ] `CLIPBOARD`
- [x] `WORKSPACE_NAME`
- [x] `WORKSPACE_FOLDER`

Expand Down
4 changes: 2 additions & 2 deletions src/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ impl Server {
line_text: line.to_string(),
current_word: cursor_word,
selected_text: Default::default(),
clipboard: get_clipboard_provider().get_contents().ok(),
clipboard: None, // get_clipboard_provider().get_contents().ok(),
};

Some(snippets.to_completion_items(&variable_init))
Expand Down Expand Up @@ -324,7 +324,7 @@ impl Server {
line_text: line.to_string(),
current_word: cursor_word.to_string(),
selected_text: range_content.to_string(),
clipboard: get_clipboard_provider().get_contents().ok(),
clipboard: None, // get_clipboard_provider().get_contents().ok(),
};

Some(actions.to_code_action_items(&variable_init))
Expand Down

0 comments on commit 207d839

Please sign in to comment.