Last active
September 30, 2023 18:05
-
-
Save spro/954fdc5603cd0707955fbfb803b02f4c to your computer and use it in GitHub Desktop.
A simpler nvim setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Indentation | |
vim.o.autoindent = true | |
vim.o.smarttab = true | |
vim.o.expandtab = true | |
vim.o.tabstop = 4 | |
vim.o.shiftwidth = 4 | |
vim.o.softtabstop = 4 | |
vim.o.backspace = "2" | |
-- Searching | |
vim.o.gdefault = true | |
vim.o.laststatus = 2 | |
vim.o.showmatch = true | |
vim.o.hlsearch = true | |
vim.o.incsearch = true | |
vim.o.ignorecase = true | |
vim.o.smartcase = true | |
-- Dividers & splits | |
vim.o.splitbelow = true | |
vim.o.splitright = true | |
-- Set leader to "," | |
vim.g.mapleader = "," | |
-- Clear search highlight with <leader><space> | |
vim.api.nvim_set_keymap('n', '<leader><space>', ':nohlsearch<CR>', {noremap = true, silent = true}) | |
-- Open fzf file search with Ctrl-P | |
vim.api.nvim_set_keymap('n', '<C-P>', ':Files<CR>', {noremap = true, silent = true}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install plugins | |
git clone [email protected]:tpope/vim-surround.git ~/.local/share/nvim/site/pack/tpope/start/vim-surround | |
git clone [email protected]:tpope/vim-abolish.git ~/.local/share/nvim/site/pack/tpope/start/vim-abolish | |
git clone [email protected]:tpope/vim-commentary.git ~/.local/share/nvim/site/pack/tpope/start/vim-commentary | |
git clone [email protected]:christoomey/vim-tmux-navigator.git ~/.local/share/nvim/site/pack/christoomey/start/vim-tmux-navigator | |
git clone [email protected]:junegunn/fzf.git ~/.local/share/nvim/site/pack/junegunn/start/fzf | |
git clone [email protected]:junegunn/fzf.vim.git ~/.local/share/nvim/site/pack/junegunn/start/fzf-vim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment