From a42bc21a1db924910129a259335fccdeb0080c34 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Tue, 13 Feb 2024 13:17:26 -0500 Subject: Init repo --- lua/cshift/init.lua | 5 +++++ lua/cshift/lazy.lua | 13 +++++++++++++ lua/cshift/plugins/init.lua | 4 ++++ lua/cshift/remaps.lua | 19 +++++++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 lua/cshift/init.lua create mode 100644 lua/cshift/lazy.lua create mode 100644 lua/cshift/plugins/init.lua create mode 100644 lua/cshift/remaps.lua (limited to 'lua') diff --git a/lua/cshift/init.lua b/lua/cshift/init.lua new file mode 100644 index 0000000..4a98a77 --- /dev/null +++ b/lua/cshift/init.lua @@ -0,0 +1,5 @@ +vim.g.mapleader = "s" +require("cshift.lazy") +require("lazy").setup("cshift.plugins") + +require("cshift.remaps") diff --git a/lua/cshift/lazy.lua b/lua/cshift/lazy.lua new file mode 100644 index 0000000..0a9c83d --- /dev/null +++ b/lua/cshift/lazy.lua @@ -0,0 +1,13 @@ +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) + diff --git a/lua/cshift/plugins/init.lua b/lua/cshift/plugins/init.lua new file mode 100644 index 0000000..4eb9c9d --- /dev/null +++ b/lua/cshift/plugins/init.lua @@ -0,0 +1,4 @@ +return { + "nvim-lua/plenary.nvim", + "nvim-telescope/telescope.nvim", +} diff --git a/lua/cshift/remaps.lua b/lua/cshift/remaps.lua new file mode 100644 index 0000000..2247cf6 --- /dev/null +++ b/lua/cshift/remaps.lua @@ -0,0 +1,19 @@ +vim.keymap.set("n", "f", vim.cmd.Ex) + +-- Project (s)cope keymaps +local scope = require("telescope.builtin") +vim.keymap.set("n", "sf", scope.find_files) + +-- (P)lugin keymaps +vim.keymap.set("n", "ps", function() + require("lazy").sync() +end) + +vim.keymap.set("n", "pu", function() + require("lazy").update() +end) + +vim.keymap.set("n", "ph", function() + require("lazy").health() +end) + -- cgit v1.2.3