os based clipboard setting

This commit is contained in:
jc 2023-07-29 00:30:55 -04:00
commit 66c14da9e9
No known key found for this signature in database
5 changed files with 20 additions and 2 deletions

View file

@ -11,9 +11,25 @@ if not vim.loop.fs_stat(lazypath) then
end end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
local has = vim.fn.has
local is_mac = has "macunix"
local is_win = has "win32"
local is_unix = has "unix"
-- custom modules: -- custom modules:
require("keymaps") require("keymaps")
require("clipboard")
require("options") require("options")
if is_win then
require("clipboard-windows")
end
if is_mac then
require("clipboard-macos")
end
if is_unix then
require("clipboard-unix")
end
require("lazy").setup("plugins") require("lazy").setup("plugins")

View file

@ -4,7 +4,7 @@
"cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" }, "cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" },
"gitsigns.nvim": { "branch": "main", "commit": "dc2962f7fce953a2a98e7c6d3d7fc4c1d1f66758" }, "gitsigns.nvim": { "branch": "main", "commit": "dc2962f7fce953a2a98e7c6d3d7fc4c1d1f66758" },
"harpoon": { "branch": "master", "commit": "21f4c47c6803d64ddb934a5b314dcb1b8e7365dc" }, "harpoon": { "branch": "master", "commit": "21f4c47c6803d64ddb934a5b314dcb1b8e7365dc" },
"lazy.nvim": { "branch": "main", "commit": "5af331ea65418dc9361769891921fdee4bcc837a" }, "lazy.nvim": { "branch": "main", "commit": "3ad55ae678876516156cca2f361c51f7952a924b" },
"lsp-zero.nvim": { "branch": "v2.x", "commit": "7b9627c2cb50906993e194290b2e539c95dfdf47" }, "lsp-zero.nvim": { "branch": "v2.x", "commit": "7b9627c2cb50906993e194290b2e539c95dfdf47" },
"lualine.nvim": { "branch": "master", "commit": "05d78e9fd0cdfb4545974a5aa14b1be95a86e9c9" }, "lualine.nvim": { "branch": "master", "commit": "05d78e9fd0cdfb4545974a5aa14b1be95a86e9c9" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "82685fdd0f67a694b244cb058b83761f54664d68" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "82685fdd0f67a694b244cb058b83761f54664d68" },

View file

@ -0,0 +1 @@
vim.opt.clipboard:append { "unnamedplus" }

View file

@ -0,0 +1 @@
vim.opt.clipboard:append { "unnamedplus" }