diff options
Diffstat (limited to 'lua')
-rw-r--r-- | lua/cshift/init.lua | 5 | ||||
-rw-r--r-- | lua/cshift/lazy.lua | 13 | ||||
-rw-r--r-- | lua/cshift/plugins/init.lua | 4 | ||||
-rw-r--r-- | lua/cshift/remaps.lua | 19 |
4 files changed, 41 insertions, 0 deletions
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) + |