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
|
||||
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:
|
||||
require("keymaps")
|
||||
require("clipboard")
|
||||
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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue