-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
46 lines (39 loc) · 905 Bytes
/
init.lua
File metadata and controls
46 lines (39 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
require("base")
require("highlights")
require("maps")
require("grep")
require("ultra_maps")
local has = vim.fn.has
local is_mac = has("macunix")
local is_win = has("win32")
local is_unix = has("unix")
local is_wsl = vim.fn.has("unix") == 1 and vim.fn.environ().WSL_DISTRO_NAME ~= nil
if is_mac then
require("macos")
end
if is_win then
require("windows")
end
if is_unix then
require("unix")
end
if is_wsl then
require("windows")
end
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
-- if not (vim.loop).fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("plugins")
require("tmux-send")
require("terminal-send").setup()
require("window-send").setup()