mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 00:38:17 +00:00
refactor: vim.ui.clipboard #26040
Problem: Platform-specific UI providers should live in `vim.ui.*`. #24164 Solution: - Move `vim.clipboard.osc52` module to `vim.ui.clipboard.osc52`. - TODO: move all of `clipboard.vim` to `vim.ui.clipboard`. ref #25872
This commit is contained in:
@@ -3598,7 +3598,8 @@ nvim_ui_set_option({name}, {value}) *nvim_ui_set_option()*
|
|||||||
|RPC| only
|
|RPC| only
|
||||||
|
|
||||||
nvim_ui_term_event({event}, {value}) *nvim_ui_term_event()*
|
nvim_ui_term_event({event}, {value}) *nvim_ui_term_event()*
|
||||||
Tells Nvim when a terminal event has occurred.
|
Tells Nvim when a terminal event has occurred: sets |v:termresponse| and
|
||||||
|
fires |TermResponse|.
|
||||||
|
|
||||||
The following terminal events are supported:
|
The following terminal events are supported:
|
||||||
|
|
||||||
|
@@ -1484,7 +1484,7 @@ get({filter}) *vim.lsp.inlay_hint.get()*
|
|||||||
vim.lsp.util.apply_text_edits(resolved_hint.textEdits, 0, client.encoding)
|
vim.lsp.util.apply_text_edits(resolved_hint.textEdits, 0, client.encoding)
|
||||||
|
|
||||||
location = resolved_hint.label[1].location
|
location = resolved_hint.label[1].location
|
||||||
client.request("textDocument/hover", {
|
client.request('textDocument/hover', {
|
||||||
textDocument = { uri = location.uri },
|
textDocument = { uri = location.uri },
|
||||||
position = location.range.start,
|
position = location.range.start,
|
||||||
})
|
})
|
||||||
|
@@ -269,12 +269,12 @@ into explicitly by setting the following |g:clipboard| definition: >lua
|
|||||||
vim.g.clipboard = {
|
vim.g.clipboard = {
|
||||||
name = 'OSC 52',
|
name = 'OSC 52',
|
||||||
copy = {
|
copy = {
|
||||||
['+'] = require('vim.clipboard.osc52').copy,
|
['+'] = require('vim.ui.clipboard.osc52').copy,
|
||||||
['*'] = require('vim.clipboard.osc52').copy,
|
['*'] = require('vim.ui.clipboard.osc52').copy,
|
||||||
},
|
},
|
||||||
paste = {
|
paste = {
|
||||||
['+'] = require('vim.clipboard.osc52').paste,
|
['+'] = require('vim.ui.clipboard.osc52').paste,
|
||||||
['*'] = require('vim.clipboard.osc52').paste,
|
['*'] = require('vim.ui.clipboard.osc52').paste,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
<
|
<
|
||||||
|
@@ -512,7 +512,7 @@ void nvim_ui_pum_set_bounds(uint64_t channel_id, Float width, Float height, Floa
|
|||||||
ui->pum_pos = true;
|
ui->pum_pos = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Tells Nvim when a terminal event has occurred.
|
/// Tells Nvim when a terminal event has occurred: sets |v:termresponse| and fires |TermResponse|.
|
||||||
///
|
///
|
||||||
/// The following terminal events are supported:
|
/// The following terminal events are supported:
|
||||||
///
|
///
|
||||||
|
Reference in New Issue
Block a user