https://github.com/hrsh7th/nvim-linkedit
https://github.com/hrsh7th/nvim-linkedit
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hrsh7th/nvim-linkedit
- Owner: hrsh7th
- Created: 2023-05-08T05:52:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-19T02:14:21.000Z (over 1 year ago)
- Last Synced: 2025-03-30T22:11:36.465Z (6 months ago)
- Language: Lua
- Size: 86.9 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# linkedit
The plugin supports `textDocument/linkedEditingRange` that defines in LSP spec.
# Usage
```lua
-- The default configuration.
require('linkedit').setup {
enabled = true,
fetch_timeout = 500,
keyword_pattern = [[\k*]],
debug = false,
sources = {
{
name = 'lsp_linked_editing_range',
on = { 'insert', 'operator' },
},
},
}-- The filetype specific configuration example.
require('linkedit').setup.filetype('yaml', {
enabled = false,
})
```# Built-in
### lsp_linked_editing_range (default: enabled)
The `textDocument/linkedEditingRange` source.
This source works only if your language server supports that method.### lsp_rename (default: disabled)
The `textDocument/rename` source.
This source works only if your language server supports that method.The LSP's rename request is supporting multifile rename.
But this plugin does not support it.