From ba818a177d571258b34f145b6fb3ec4147251026 Mon Sep 17 00:00:00 2001 From: Jeremy Lumley Date: Thu, 8 Jun 2023 15:03:45 -0400 Subject: [PATCH] initial commit --- README.md | 5 +++++ init.lua | 27 ++++++++++++++++++++++++++- install.sh | 3 +++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 install.sh diff --git a/README.md b/README.md index 64f386c6..4f454aed 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # kickstart.nvim +### Quick Install +```bash +wget -O - https://raw.githubusercontent.com/jlumley/kickstart.nvim/master/install.bash | bash +``` + ### Introduction A starting point for Neovim that is: diff --git a/init.lua b/init.lua index 57c9af42..a572c793 100644 --- a/init.lua +++ b/init.lua @@ -69,6 +69,9 @@ require('lazy').setup({ 'tpope/vim-fugitive', 'tpope/vim-rhubarb', + -- tmux navigator + 'christoomey/vim-tmux-navigator', + -- Detect tabstop and shiftwidth automatically 'tpope/vim-sleuth', @@ -214,6 +217,7 @@ vim.o.hlsearch = false -- Make line numbers default vim.wo.number = true +vim.wo.relativenumber = true -- Enable mouse mode vim.o.mouse = 'a' @@ -221,7 +225,7 @@ vim.o.mouse = 'a' -- Sync clipboard between OS and Neovim. -- Remove this option if you want your OS clipboard to remain independent. -- See `:help 'clipboard'` -vim.o.clipboard = 'unnamedplus' +-- vim.o.clipboard = 'unnamedplus' -- Enable break indent vim.o.breakindent = true @@ -249,6 +253,27 @@ vim.o.termguicolors = true -- [[ Basic Keymaps ]] +-- START OF JLUMLEY +-- move highlight with J K +vim.keymap.set("v", "J", ":m '>+1gv=gv") +vim.keymap.set("v", "K", ":m '<-2gv=gv") + +-- keep cursour centered while hoping +vim.keymap.set("n", "", "zz") +vim.keymap.set("n", "", "zz") + +-- delete and paste without saving to register +vim.keymap.set("x", "p", [["_dP]]) + +-- yank to system clipboard +vim.keymap.set({ "n", "v" }, "y", [["+y]]) +vim.keymap.set("n", "Y", [["+Y]]) + +-- delete to void register +vim.keymap.set({ "n", "v" }, "d", [["_d]]) + +-- END OF JLUMLEY + -- Keymaps for better default experience -- See `:help vim.keymap.set()` vim.keymap.set({ 'n', 'v' }, '', '', { silent = true }) diff --git a/install.sh b/install.sh new file mode 100644 index 00000000..fc4de7f4 --- /dev/null +++ b/install.sh @@ -0,0 +1,3 @@ +mkdir -p ~/.config/nvim +git clone https://github.com/jlumley/kickstart.nvim.git ~/.config/nvim +