Skip to content

Commit 7ef73f2

Browse files
committed
fix: telescope
1 parent 1f3fc3d commit 7ef73f2

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.github/workflows/develop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches: [develop]
66
pull_request:
7+
branches: [develop]
78
types: [opened, synchronize]
89

910
concurrency:

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches: [master]
66
pull_request:
7+
branches: [master]
78
types: [opened, synchronize]
89

910
concurrency:

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010

1111
![Demo](https://github.com/chenasraf/text-transform.nvim/assets/167217/20c0106e-2c3b-4dd5-894e-23b313d8bc6b)
1212

13-
1413
</div>
1514

1615
## ⚡️ Features
1716

18-
Transform the current word or selection between multiple case types. Need to easily replace myVar
19-
with my_var or vice versa? This plugin is for you!
17+
Transform the current word or selection between multiple case types. Need to easily replace `myVar`
18+
with `my_var` or vice versa? This plugin is for you!
2019

2120
- Works on current word in **Normal Mode**
2221
- Will replace the current word selectable by <kbd>ciw</kbd>

lua/text-transform/telescope.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
local state = require("text-transform.state")
2+
local replacers = require("text-transform.replacers")
23

34
local pickers = require("telescope.pickers")
45
local finders = require("telescope.finders")
@@ -75,7 +76,7 @@ function TextTransform.popup()
7576
local selection = action_state.get_selected_entry()
7677
actions.close(prompt_bufnr)
7778
vim.schedule(function()
78-
TextTransform.replace_selection(selection.value)
79+
replacers.replace_selection(selection.value)
7980
state.restore_positions()
8081
end)
8182
end)

0 commit comments

Comments
 (0)