macos fix

This commit is contained in:
Yan Lin 2025-10-21 21:50:14 +02:00
parent 7f7b939450
commit 5936f7d0a7

View file

@ -358,17 +358,20 @@ in
-- OSC-52 clipboard integration (matches tmux setup, works with Ghostty) -- OSC-52 clipboard integration (matches tmux setup, works with Ghostty)
-- This enables clipboard functionality across SSH, tmux, and multi-platform -- This enables clipboard functionality across SSH, tmux, and multi-platform
vim.g.clipboard = { -- Only enabled on Linux; macOS uses native clipboard with "unnamedplus"
name = 'OSC 52', ${lib.optionalString (!pkgs.stdenv.isDarwin) ''
copy = { vim.g.clipboard = {
['+'] = require('vim.ui.clipboard.osc52').copy('+'), name = 'OSC 52',
['*'] = require('vim.ui.clipboard.osc52').copy('*'), copy = {
}, ['+'] = require('vim.ui.clipboard.osc52').copy('+'),
paste = { ['*'] = require('vim.ui.clipboard.osc52').copy('*'),
['+'] = require('vim.ui.clipboard.osc52').paste('+'), },
['*'] = require('vim.ui.clipboard.osc52').paste('*'), paste = {
}, ['+'] = require('vim.ui.clipboard.osc52').paste('+'),
} ['*'] = require('vim.ui.clipboard.osc52').paste('*'),
},
}
''}
-- Close all buffers except current (preserving NvimTree and other special buffers) -- Close all buffers except current (preserving NvimTree and other special buffers)
function close_other_buffers() function close_other_buffers()