mirror of
https://github.com/chenasraf/text-transform.nvim.git
synced 2026-05-17 17:48:04 +00:00
fix: telescope
This commit is contained in:
1
.github/workflows/develop.yml
vendored
1
.github/workflows/develop.yml
vendored
@@ -4,6 +4,7 @@ on:
|
||||
push:
|
||||
branches: [develop]
|
||||
pull_request:
|
||||
branches: [develop]
|
||||
types: [opened, synchronize]
|
||||
|
||||
concurrency:
|
||||
|
||||
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@@ -4,6 +4,7 @@ on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
types: [opened, synchronize]
|
||||
|
||||
concurrency:
|
||||
|
||||
@@ -10,13 +10,12 @@
|
||||
|
||||

|
||||
|
||||
|
||||
</div>
|
||||
|
||||
## ⚡️ Features
|
||||
|
||||
Transform the current word or selection between multiple case types. Need to easily replace myVar
|
||||
with my_var or vice versa? This plugin is for you!
|
||||
Transform the current word or selection between multiple case types. Need to easily replace `myVar`
|
||||
with `my_var` or vice versa? This plugin is for you!
|
||||
|
||||
- Works on current word in **Normal Mode**
|
||||
- Will replace the current word selectable by <kbd>ciw</kbd>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
local state = require("text-transform.state")
|
||||
local replacers = require("text-transform.replacers")
|
||||
|
||||
local pickers = require("telescope.pickers")
|
||||
local finders = require("telescope.finders")
|
||||
@@ -75,7 +76,7 @@ function TextTransform.popup()
|
||||
local selection = action_state.get_selected_entry()
|
||||
actions.close(prompt_bufnr)
|
||||
vim.schedule(function()
|
||||
TextTransform.replace_selection(selection.value)
|
||||
replacers.replace_selection(selection.value)
|
||||
state.restore_positions()
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user