macos fix

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

View file

@ -358,6 +358,8 @@ 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
-- Only enabled on Linux; macOS uses native clipboard with "unnamedplus"
${lib.optionalString (!pkgs.stdenv.isDarwin) ''
vim.g.clipboard = { vim.g.clipboard = {
name = 'OSC 52', name = 'OSC 52',
copy = { copy = {
@ -369,6 +371,7 @@ in
['*'] = 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()