Merge pull request #1 from jlumley/develop

initial commit
This commit is contained in:
jlumley 2023-06-08 15:19:08 -04:00 committed by GitHub
commit ecda1f9757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 1 deletions

View File

@ -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:

View File

@ -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 '>+1<CR>gv=gv")
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
-- keep cursour centered while hoping
vim.keymap.set("n", "<C-d>", "<C-d>zz")
vim.keymap.set("n", "<C-u>", "<C-u>zz")
-- delete and paste without saving to register
vim.keymap.set("x", "<leader>p", [["_dP]])
-- yank to system clipboard
vim.keymap.set({ "n", "v" }, "<leader>y", [["+y]])
vim.keymap.set("n", "<leader>Y", [["+Y]])
-- delete to void register
vim.keymap.set({ "n", "v" }, "<leader>d", [["_d]])
-- END OF JLUMLEY
-- Keymaps for better default experience
-- See `:help vim.keymap.set()`
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })

3
install.sh Normal file
View File

@ -0,0 +1,3 @@
mkdir -p ~/.config/nvim
git clone https://github.com/jlumley/kickstart.nvim.git ~/.config/nvim