From a99b211b3bec43ebe3cdfa1899cba227d1d569a4 Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Thu, 11 Apr 2024 23:20:57 -0500 Subject: Initial commit --- dot_config/nvim/init.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 dot_config/nvim/init.lua (limited to 'dot_config/nvim/init.lua') diff --git a/dot_config/nvim/init.lua b/dot_config/nvim/init.lua new file mode 100644 index 0000000..864560f --- /dev/null +++ b/dot_config/nvim/init.lua @@ -0,0 +1,26 @@ +-- Setting the leader key just in case +vim.g.mapleader = " " +vim.g.maplocalleader = " " + +-- Sourcing regular nvim settings/keybindings +require("ibrahim.set") +require("ibrahim.keys") + +-- Bootstrap Lazy plugin manager +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") + +-- Keymap to open Lazy +vim.keymap.set("n", "o", vim.cmd.Lazy) -- cgit v1.2.3