summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2024-04-23 00:43:02 +0500
committertalha <talha@talhaamir.xyz>2024-04-23 00:43:02 +0500
commitf4431f6d75baa71aa23318ea50bea3848f946ab1 (patch)
treeb68fdc45b210d7c8adf2db39a2e7d499ccc1ba6f /init.lua
parent721ef14cf3906992d8615456493de439ada8e1b8 (diff)
Migrated to lazy.nvim, added neomake, a few remaps
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 1105fe8..4a33ff0 100644
--- a/init.lua
+++ b/init.lua
@@ -1 +1,19 @@
+-- setup lazy
+local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
+if not (vim.uv or 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)
+
+-- setup leader key
+vim.g.mapleader = " "
+
require("talha")
+