-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinit.lua
31 lines (30 loc) · 945 Bytes
/
init.lua
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
require("settings")
require("commands")
vim.g.maplocalleader = "\\"
vim.g.mapleader = ' '
local maps = require("mappings")
local utils = require("raghu.utils")
Info, Dbg = utils.info, utils.dbg
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
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("lazy").setup("plugins", {})
if (vim.fn.has('linux') > 0 or vim.fn.has('mac')) then
if (not vim.v.servername) then
vim.fn.serverstart(vim.fn.stdpath('run') .. '/nvim.sock')
end
vim.fn.writefile({vim.v.servername}, "/tmp/"..vim.env.USER.."-server.nvim")
-- vim.cmd('echom "server running at '..vim.v.servername .. '"')
Info('Server running at ', vim.v.servername)
end
maps.mapKeys()
utils.info("sourced init.lua")