Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Akirisu-kirisu/nvim-insert-mode
https://github.com/Akirisu-kirisu/nvim-insert-mode
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/Akirisu-kirisu/nvim-insert-mode
- Owner: Akirisu-kirisu
- Created: 2024-10-22T02:43:13.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-22T03:05:13.000Z (3 months ago)
- Last Synced: 2024-10-23T04:04:30.678Z (2 months ago)
- Language: Lua
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- my-neovim-pluginlist - Akirisu-kirisu/nvim-insert-mode - kirisu/nvim-insert-mode) ![](https://img.shields.io/github/last-commit/Akirisu-kirisu/nvim-insert-mode) ![](https://img.shields.io/github/commit-activity/y/Akirisu-kirisu/nvim-insert-mode) (Editing support / Insert)
README
- [Overview](<#overview>)
- [Todo](<#todo>)## nvim-insert-mode
Insert-Mode Search|Replace based navigation combined with quick jump features.* ## Dynamic Text Replacement:
Users can replace text efficiently based on their input, allowing for quick adjustments without leaving insert mode.
Supports varying lengths of replacement text, accommodating different editing needs.* ## Anywhere Functionality:
Integrates with the Hop plugin to enable quick navigation within lines and across the buffer.
Offers different hopping modes based on the context (e.g., empty lines vs. current line), making it versatile for various editing scenarios.### Requirements
[Neovim 0.9+](https://github.com/neovim/neovim/releases) is required.
[Hop.nvim](https://github.com/smoka7/hop.nvim/)
[Noice](https://github.com/folke/noice.nvim)
* ## Setup
```lua
-- lazy.nvim
{
dir = "Akirisu-kirisu/nvim-insert-mode",
dependencies = {
"smoka7/hop.nvim",
"folke/noice.nvim",
},
event = "VeryLazy", -- Lazy load your plugin based on specific event
},-- noice.nvim
views = {
cmdline_popup = {
timeout = 10000,
focusable = true,
position = {
row = "93%", -- This will position it at the bottom of the screen
col = "100%",
},
relative = "editor",
size = {
width = get_relative_width(),
height = "auto",
},
replace = true,
},
}
```
## keymaps
```lua
vim.keymap.set("n", "", [[:lua require('nvim-insert-mode').insert_find_replace()]])
vim.keymap.set("n", "", [[:lua require('nvim-insert-mode').insert_find_cut()]])
vim.keymap.set("n", "", [[:lua require('nvim-insert-mode').insert_hop()]])
```
## Todo
Command Features:1. The command should function like a vertical hop, allowing the selection of empty lines,
with an optional width of 80 characters.2. It should incorporate a precognition feature that utilizes gutter lines.
3. It must include a search history feature to select previous and next entries