mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-07 10:51:36 +00:00
neovim/basic: deprecate vim.useSystemClipboard
This commit is contained in:
parent
4678f73411
commit
69e75a00ed
3 changed files with 16 additions and 10 deletions
|
@ -19,6 +19,11 @@
|
||||||
unavailable as they have been refactored out of the main none-ls repository
|
unavailable as they have been refactored out of the main none-ls repository
|
||||||
upstream.
|
upstream.
|
||||||
|
|
||||||
|
- `vim.useSystemClipboard` has been deprecated as a part of removing most
|
||||||
|
top-level convenience options, and should instead be configured in the new
|
||||||
|
module interface. You may set [](#opt-vim.clipboard.registers) appropriately
|
||||||
|
to configure Neovim to use the system clipboard.
|
||||||
|
|
||||||
[NotAShelf](https://github.com/notashelf):
|
[NotAShelf](https://github.com/notashelf):
|
||||||
|
|
||||||
[typst-preview.nvim]: https://github.com/chomosuke/typst-preview.nvim
|
[typst-preview.nvim]: https://github.com/chomosuke/typst-preview.nvim
|
||||||
|
@ -93,6 +98,8 @@
|
||||||
|
|
||||||
- Add `vim.clipboard` module for easily managing Neovim clipboard providers and
|
- Add `vim.clipboard` module for easily managing Neovim clipboard providers and
|
||||||
relevant packages in a simple UI.
|
relevant packages in a simple UI.
|
||||||
|
- This deprecates `vim.useSystemClipboard` as well, see breaking changes
|
||||||
|
section above for migration options.
|
||||||
|
|
||||||
[amadaluzia](https://github.com/amadaluzia):
|
[amadaluzia](https://github.com/amadaluzia):
|
||||||
|
|
||||||
|
|
|
@ -111,6 +111,15 @@ in {
|
||||||
under the diagnostics module. Please consider using one of 'vim.diagnostics.config' or
|
under the diagnostics module. Please consider using one of 'vim.diagnostics.config' or
|
||||||
'vim.luaConfigRC' to configure LSP lines for Neovim through its own diagnostics API.
|
'vim.luaConfigRC' to configure LSP lines for Neovim through its own diagnostics API.
|
||||||
'')
|
'')
|
||||||
|
|
||||||
|
# 2025-05-04
|
||||||
|
(mkRemovedOptionModule ["vim" "useSystemClipboard"] ''
|
||||||
|
Clipboard behaviour should now be controlled through the new, more fine-grained module
|
||||||
|
interface found in 'vim.clipboard'. To replicate previous behaviour, you may either
|
||||||
|
add 'vim.opt.clipboard:append("unnamedplus")' in luaConfigRC, or preferably set it
|
||||||
|
in 'vim.clipboard.registers'. Please see the documentation for the new module for more
|
||||||
|
details, or open an issue if you are confused.
|
||||||
|
'')
|
||||||
]
|
]
|
||||||
|
|
||||||
# Migrated via batchRenameOptions. Further batch renames must be below this line.
|
# Migrated via batchRenameOptions. Further batch renames must be below this line.
|
||||||
|
|
|
@ -34,12 +34,6 @@ in {
|
||||||
description = "Enable syntax highlighting";
|
description = "Enable syntax highlighting";
|
||||||
};
|
};
|
||||||
|
|
||||||
useSystemClipboard = mkOption {
|
|
||||||
type = bool;
|
|
||||||
default = false;
|
|
||||||
description = "Make use of the clipboard for default yank and paste operations. Don't use * and +";
|
|
||||||
};
|
|
||||||
|
|
||||||
lineNumberMode = mkOption {
|
lineNumberMode = mkOption {
|
||||||
type = enum ["relative" "number" "relNumber" "none"];
|
type = enum ["relative" "number" "relNumber" "none"];
|
||||||
default = "relNumber";
|
default = "relNumber";
|
||||||
|
@ -144,10 +138,6 @@ in {
|
||||||
# to pre-set Neovim options. Fear not, though as the Lua DAG is still as powerful as it
|
# to pre-set Neovim options. Fear not, though as the Lua DAG is still as powerful as it
|
||||||
# could be.
|
# could be.
|
||||||
luaConfigRC.basic = entryAfter ["globalsScript"] ''
|
luaConfigRC.basic = entryAfter ["globalsScript"] ''
|
||||||
${optionalString cfg.useSystemClipboard ''
|
|
||||||
vim.opt.clipboard:append("unnamedplus")
|
|
||||||
''}
|
|
||||||
|
|
||||||
${optionalString cfg.syntaxHighlighting ''
|
${optionalString cfg.syntaxHighlighting ''
|
||||||
vim.cmd("syntax on")
|
vim.cmd("syntax on")
|
||||||
''}
|
''}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue