summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-12-08 14:27:51 +0100
committerDaniel Weipert <code@drogueronin.de>2021-12-08 14:27:51 +0100
commit53499b70d65f609645b0823acb83bfcb3f700447 (patch)
treeaa1a61176890b8f36b1aaefdcf5b91c65ce7dc3d /.config/nvim
parent7fd30e3486d4e49f802b034df4dfa77cd529c014 (diff)
Adjusts nvim config
Diffstat (limited to '.config/nvim')
-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>