summaryrefslogtreecommitdiff
path: root/.config/nvim/init.vim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/init.vim')
-rw-r--r--.config/nvim/init.vim22
1 files changed, 17 insertions, 5 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index f246e68..3176eea 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -8,10 +8,13 @@ Plug 'gruvbox-community/gruvbox'
Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons'
+Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
+Plug 'airblade/vim-gitgutter'
+
call plug#end()
@@ -22,31 +25,40 @@ call plug#end()
nnoremap <SPACE> <Nop>
let mapleader=" "
-set shiftwidth=4
+set shiftwidth=2
set nu rnu
set mouse=a
colorscheme gruvbox
hi Normal guibg=NONE ctermbg=NONE
-let g:NERDTreeShowHidden=1
+" Nerdtree
-" "
-" Keys
-" "
+let g:NERDTreeShowHidden=1
map <C-b> <cmd>NERDTreeToggle<CR>
+
+" Telescope
+
nnoremap <leader>ff <cmd>Telescope find_files<CR>
nnoremap <leader>fg <cmd>Telescope live_grep<CR>
nnoremap <leader><leader> <cmd>Telescope buffers<CR>
+
+" "
+" Keys
+" "
+
nnoremap <A-Left> <C-w><Left>
nnoremap <A-Up> <C-w><Up>
nnoremap <A-Right> <C-w><Right>
nnoremap <A-Down> <C-w><Down>
+nnoremap <C-Left> <cmd>tabprevious<CR>
+nnoremap <C-Right> <cmd>tabnext<CR>
+
map <ESC><C-c> <CR>
nnoremap <silent> <C-s> :w<CR>