summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-02-13 13:17:26 -0500
committerKyle Gunger <kgunger12@gmail.com>2024-02-13 13:17:26 -0500
commita42bc21a1db924910129a259335fccdeb0080c34 (patch)
treed07dacea8896ebc21616b5615ab7ef21149c1f93
Init repo
-rw-r--r--init.lua1
-rw-r--r--lazy-lock.json5
-rw-r--r--lua/cshift/init.lua5
-rw-r--r--lua/cshift/lazy.lua13
-rw-r--r--lua/cshift/plugins/init.lua4
-rw-r--r--lua/cshift/remaps.lua19
6 files changed, 47 insertions, 0 deletions
diff --git a/init.lua b/init.lua
new file mode 100644
index 0000000..efa72e6
--- /dev/null
+++ b/init.lua
@@ -0,0 +1 @@
+require("cshift")
diff --git a/lazy-lock.json b/lazy-lock.json
new file mode 100644
index 0000000..3420e1e
--- /dev/null
+++ b/lazy-lock.json
@@ -0,0 +1,5 @@
+{
+ "lazy.nvim": { "branch": "main", "commit": "aedcd79811d491b60d0a6577a9c1701063c2a609" },
+ "plenary.nvim": { "branch": "master", "commit": "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" },
+ "telescope.nvim": { "branch": "master", "commit": "0f865f17af4f9bc1587a0132414cdfd32d91852e" }
+} \ No newline at end of file
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", "<leader>f", vim.cmd.Ex)
+
+-- Project (s)cope keymaps
+local scope = require("telescope.builtin")
+vim.keymap.set("n", "<leader>sf", scope.find_files)
+
+-- (P)lugin keymaps
+vim.keymap.set("n", "<leader>ps", function()
+ require("lazy").sync()
+end)
+
+vim.keymap.set("n", "<leader>pu", function()
+ require("lazy").update()
+end)
+
+vim.keymap.set("n", "<leader>ph", function()
+ require("lazy").health()
+end)
+