os based clipboard setting
This commit is contained in:
parent
8738fcdde9
commit
66c14da9e9
5 changed files with 20 additions and 2 deletions
|
|
@ -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")
|
||||||
|
|
|
||||||
|
|
@ -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" },
|
||||||
|
|
|
||||||
1
.config/nvim/lua/clipboard-macos.lua
Normal file
1
.config/nvim/lua/clipboard-macos.lua
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
vim.opt.clipboard:append { "unnamedplus" }
|
||||||
1
.config/nvim/lua/clipboard-unix.lua
Normal file
1
.config/nvim/lua/clipboard-unix.lua
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
vim.opt.clipboard:append { "unnamedplus" }
|
||||||
Loading…
Add table
Add a link
Reference in a new issue