blob: 3176eea630939ea365aa36aedd8500b201c43b0b (
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
53
54
55
56
57
58
59
60
61
62
63
64
|
" "
" Plugins
" "
call plug#begin(stdpath('data') . '/plugged')
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()
" "
" Config
" "
nnoremap <SPACE> <Nop>
let mapleader=" "
set shiftwidth=2
set nu rnu
set mouse=a
colorscheme gruvbox
hi Normal guibg=NONE ctermbg=NONE
" Nerdtree
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>
|