summaryrefslogtreecommitdiff
path: root/.config/nvim/init.vim
blob: f246e680e7ff1090825b32644898350335b979ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
" "
" Plugins
" "

call plug#begin(stdpath('data') . '/plugged')

Plug 'gruvbox-community/gruvbox'

Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons'

Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'

call plug#end()


" "
" Config
" "

nnoremap <SPACE> <Nop>
let mapleader=" "

set shiftwidth=4
set nu rnu
set mouse=a

colorscheme gruvbox
hi Normal guibg=NONE ctermbg=NONE

let g:NERDTreeShowHidden=1


" "
" Keys
" "

map <C-b> <cmd>NERDTreeToggle<CR>

nnoremap <leader>ff <cmd>Telescope find_files<CR>
nnoremap <leader>fg <cmd>Telescope live_grep<CR>
nnoremap <leader><leader> <cmd>Telescope buffers<CR>

nnoremap <A-Left> <C-w><Left>
nnoremap <A-Up> <C-w><Up>
nnoremap <A-Right> <C-w><Right>
nnoremap <A-Down> <C-w><Down>

map <ESC><C-c> <CR>
nnoremap <silent> <C-s> :w<CR>